Summary: | windows frequently stuck offscreen when turning on/off monitors, can't use "move" or kwin script to get back on-screen | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | andy <andy> |
Component: | wayland-generic | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kdedev, nate, xaver.hugl |
Priority: | NOR | Keywords: | multiscreen |
Version: | 6.1.5 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=496824 | ||
Latest Commit: | Version Fixed In: | 6.3.0 | |
Sentry Crash Report: | |||
Attachments: | Firefox partially on right side of display |
Description
andy
2024-10-02 22:10:58 UTC
I've been experiencing this with current git master too. I found a bulletproof way to reproduce it today: 1. Have a laptop and plug in an external monitor to the right of the laptop 2. Custom tile (not quick tile) a window to the far right side of the external monitor 3. Unplug the external monitor At this point, the window sometimes fails to move to the laptop screen, but usually it does move. HOWEVER! When it does move, if I try to right-tile it by pressing Meta+Right Arrow (may need to do it 1-3 times), the window will move off the screen and get permanently stuck there — no tricks can bring it back. I was not able to reproduce the exact same thing with git master, but I am observing something similar and probably related **Setup** Laptop has a monitor plugged in via HDMI cable. The external display is to the right of the laptop's display The simplest way I can reproduce: It has to be with a fresh plasma session (I restart plasmashell first, otherwise other window repositioning makes this not happen) With the monitor connected, tile Firefox on the upper left of the external display Unplug the HDMI cable Observe: Firefox is only partly on the visible screen (screenshot) If I plug the monitor back in, Firefox is *not* returned to its previous position I can then also reproduce with FF custom tiled to the middle on the external monitor I've also reproduced windows partially moving to the laptop display with other arrangements Laptop screen: Konsole quick tiled on the right (Meta+R-Arrow) External monitor: System settings custom tiled lower left Firefox custom tiled top left Dolphin custom tiled middle third When I unplug the monitor cable, all windows are moved to the laptop screen Notably, the Quick Settings window is only partially on the screen When I plug the monitor back in, other windows go back to the positions on that display *except* Quick Settings Created attachment 175656 [details]
Firefox partially on right side of display
The main System Settings window seems prone to this Custom tiled it to the right on the external display Disconnected display System settings was off screen, but could be moved on screen a workaround that seems to be working for me is to have an extra desktop with no windows on it, switch to that before I start turning off monitors, and after coming back with all the monitors on switch back to the original desktop I still believe a great solution would be the ability to lock the monitor layout and prevent dynamic moving of windows, panels, and widgets when one monitor disconnects. On my desktop 99% of the time I am never actually adding/removing a physical screen, but the current behavior acts that way (more oriented towards laptops with a single external monitor). It would save a lot of frustration from things moving around. Is there a way to do this, like disable kscreen somehow? This should be fixed in the upcoming Plasma 6.3.0 with some recent changes to KWin. Windows may now appear *partially* offscreen which is a remaining known issue, but that'll have to be fixed separately. |