Bug 498235 - Dragging a window offscreen can make it unrecoverable
Summary: Dragging a window offscreen can make it unrecoverable
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.2.4
Platform: NixOS Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-04 00:01 UTC by benjamin melançon
Modified: 2025-02-12 03:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description benjamin melançon 2025-01-04 00:01:22 UTC
SUMMARY

It is possible for a window to become unretrievable from any screen.  It can be solected, pressing `ALT F3` brings up the window menu *from the bottom of the screen* but saying to move it, maximize it, fullscreen it, you name it— the window is never visible.  The window stays missing from all screens and activities.

STEPS TO REPRODUCE
1. This is a really weird one and i'm not sure how it happened so you get a story, sorry.  Using two external monitors and the laptop monitor.  So i had enabled the "Center snap zone" in Window Behavior because i was trying to see if, whatever that was, maybe it [would give a way to reset an individual window to snapping to one-half the screen size](https://discuss.kde.org/t/how-do-i-force-meta-arrow-to-resize-window-50-of-screen-width/26171)
2. Step 1 may or may not be related to anything, but as part of trying to make the "center snap zone" do anything at one point a dragged the window by its title bar toward the bottom of the screen… and it disappeared. 
3. When trying to reproduce this i had to drag several times to make it disappear but it never disappeared as fully— i was able to drag it to another monitor screen and start seeing it by using the toggle overview shortcut (Meta+W) and dragging it.  The original window that disappeared does not switch monitors when dragged.

OBSERVED RESULT

The window can be seen in the overview or alt tab and its window menu can be seen with ALT+F3 but the window itself cannot be made to be shown.  Suddenly realizing this is the same experience with the much more serious/reproducible bug #479694

EXPECTED RESULT

There should be no way to drag a window entirely off-screen.

And if it is, moving the window, snapping the window, full-screening the window… something makes it visible again.

SOFTWARE/OS VERSIONS

Operating System: NixOS 25.05
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1
Kernel Version: 6.6.64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 9 7940HS w/ Radeon 780M Graphics
Memory: 92.1 GiB of RAM
Graphics Processor: AMD Radeon 780M

ADDITIONAL INFORMATION

I'm sorry.  I hate to file this kind of super-hard-to-reproduce bug, but maybe "simply" making it so windows cannot be entirely dragged offscreen no matter how hard a fool like me might try will be enough to protect others from this.  Thanks!
Comment 1 John Kizer 2025-01-13 07:56:59 UTC
Hi - thanks for your bug report! I don't think I'm able to reproduce it on my Fedora KDE 41 device, but - with an issue like this where very specific mouse motions might be involved, would you be able to please take a screen recording video (Spectacle has a built-in feature for this) of the steps to reproduce, to help folks see the exact process?

Thanks!
Comment 2 Bug Janitor Service 2025-01-28 03:47:20 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2025-02-12 03:46:52 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.