Bug 471028 - On X11 windows move to another monitor when lid closed and don't come back when lid opened
Summary: On X11 windows move to another monitor when lid closed and don't come back wh...
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (show other bugs)
Version: 5.27.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: multiscreen, X11-only
Depends on:
Blocks:
 
Reported: 2023-06-14 16:30 UTC by wbqq
Modified: 2025-02-24 17:58 UTC (History)
2 users (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 wbqq 2023-06-14 16:30:44 UTC
STEPS TO REPRODUCE
1. connect an extra monitor to a laptop, place some windows on different screens
2. close laptop lid
3. open it

EXPECTED RESULT
first of all, in power management settings i set "do nothing when lid closed" instead of "turn screen off" and the screen of the laptop still turns off making all windows move to another screen. then, when the lid is opened and the screen is turned back on, i can see all the windows on the external monitor, they're not moving back to laptop screen

OBSERVED RESULT
when laptop lid closed, screen stays on if power management settings says so. and even when laptop screen is disabled anyways somehow, windows move back to their places it when it's enabled again


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: arch
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9

ADDITIONAL INFORMATION
sorry if kscreen is a wrong plasma component to report this, it's both powerdevil and kwin issue i think, but have no idea how it all works tbh
Comment 1 Nate Graham 2023-09-15 16:43:14 UTC
Is this on X11 or Wayland?
Comment 2 wbqq 2023-09-18 08:33:00 UTC
(In reply to Nate Graham from comment #1)
tested on X11, but as far as i understand this is the issue with window placing logic in kwin, not a fault of graphics protocol, so i expect the same behaviour on wayland, though can't check unfortunately
Comment 3 TraceyC 2025-01-30 21:47:31 UTC
I'm able to confirm this behavior on X11, on git-master
On Wayland, the windows reposition themselves as expected when the laptop lid is opened
Comment 4 TraceyC 2025-02-24 17:58:36 UTC
Adding the x11-only keyword