Bug 479581 - Disconnecting external displays leave window out of the laptop screen
Summary: Disconnecting external displays leave window out of the laptop screen
Status: RESOLVED DUPLICATE of bug 452118
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (show other bugs)
Version: 5.27.9
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-09 18:51 UTC by Henry Hu
Modified: 2024-01-09 20:28 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henry Hu 2024-01-09 18:51:23 UTC
SUMMARY
My laptop connects to 2 monitors. When I unplug both, the windows on the right monitor stays out of the screen.

STEPS TO REPRODUCE
1. Open windows on both external monitors, maximized.
2. Disconnect both external monitors

OBSERVED RESULT
The windows on the right monitor are now out of the screen

EXPECTED RESULT
The windows on the right monitor get moved into the laptop screen

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Laptop: ThinkPad X1 Carbon Gen 9
Graphics processor: Mesa Intel Xe Graphics
Processor: i7-1185G7

My external monitors are 4K at left and 1440p at right. Left one is the main monitor. When plugged in, I set the laptop screen to be disabled. My laptop screen is also 4K.

After unplugging, the windows on the right monitor still show up in Alt-Tab, but when you switch to them, they don't show up. I can manually move them back using window menu's 'Move' action, but that's cumbersome.
I'm running Plasma with Wayland. In the past I did the same thing with X11, and this was not an issue.
Comment 1 fanzhuyifan 2024-01-09 20:28:52 UTC
Should be fixed in plasma 6

*** This bug has been marked as a duplicate of bug 452118 ***