Bug 485274 - When using X11 all windows on external screen disconnected while laptop was asleep fail to move to external screen
Summary: When using X11 all windows on external screen disconnected while laptop was a...
Status: RESOLVED DUPLICATE of bug 490667
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: multiscreen
Depends on:
Blocks:
 
Reported: 2024-04-09 13:45 UTC by Natalie Clarius
Modified: 2024-09-25 12:50 UTC (History)
3 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 Natalie Clarius 2024-04-09 13:45:05 UTC
STEPS TO REPRODUCE
1. Have some window on an external monitor
2. Put the laptop to sleep
3. While asleep, disconnect the external monitor
4. Wake up from sleep again
5. Try to activate the window from eg task manager applet

OBSERVED RESULT
Window is out of the visible area, where the external monitor used to be

EXPECTED RESULT
Window has been moved to the still existing screen when the other screen was disconnected

SOFTWARE/OS VERSIONS
git master
X11
Comment 1 Nate Graham 2024-04-09 15:03:51 UTC
Which windows? If you repeat the process, are the same windows offscreen again, or has this changed randomly such that different windows are now offscreen?

Can you attach a screenshot from the KScreen KCM of what your screen arrangement looked like prior to disconnection, and mention which of the screens was disconnected to trigger this issue?
Comment 2 Natalie Clarius 2024-04-09 16:17:53 UTC
The windows which become invisible are the ones that were on the now disconnected monitor. The unminimize animation shoes that they are in the same place as is the monitor was still present, except now that area of the combined screen space longer exists.

The setup is with the external monitor extending to the right. So the affected windows are right of the laptop screen edge in this scenario.
Comment 3 Natalie Clarius 2024-04-09 16:22:30 UTC
The windows can be moved to the still existing screen (as should have happened automatically) with the "window to screen on the left" shortcuts, also if the screen on the right which they're virtually still on were still present.
Comment 4 Natalie Clarius 2024-04-09 16:24:40 UTC
s/also if/as if
Comment 5 Nate Graham 2024-04-09 19:56:42 UTC
If you put *different* windows on the other screen and disconnect it, does the issue still happen? In other words, does this affect *all* windows that are on the disconnected screen, or only some, with others moving over to the laptop screen properly?

Finally, can the same behaviors be seen in a Wayland session, or does it only happen on X11?
Comment 6 Natalie Clarius 2024-04-09 23:11:15 UTC
All windows that were on the disconnected screen.

Doesn't happen with Wayland.

Also doesn't happen when putting to sleep through KRunner, only when closing the laptop lid.
Comment 7 David Edmundson 2024-09-25 12:50:42 UTC

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