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
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?
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.
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.
s/also if/as if
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?
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.
*** This bug has been marked as a duplicate of bug 490667 ***