SUMMARY If disconnecting a device from an external monitor while the device sleeps, the window remains on that screen, even if the screen is not present anymore. My laptop is connected to a docking station, which has two external monitors connected. If I open an application, e.g. Firefox on the external monitor, and then put the laptop to sleep, then disconnect it from the dock, then those windows remain on the virtual screen, but one cannot access them anymore. Plasma restricts itself to the laptop screen only, but the windows remain on the now disconnected screen, and cannot be moved nor restored. I tried to minimize the Firefox window and maximize it again to show up on the laptop screen but no success. One can see the maximize restore to move to where the external monitor was connected, but the window remains out of reach. I can only reproduce it when putting the laptop to sleep. STEPS TO REPRODUCE 1. Connect an external monitor, move Firefox on that display 2. Put computer to sleep 3. Disconnect the external monitor (or docking station) 4. Wake computer up 5. Firefox remains on the external monitor screen, no way to access it anymore OBSERVED RESULT After waking up from sleep, a window previously on an external monitor is not accessible anymore EXPECTED RESULT After waking up from sleeping, all windows will be moved to the remaining screens, if they are out of the available displays. It would be also a good idea to do the same check when maximising a window, so that minimizing and maximizing could become a last-resort option. SOFTWARE/OS VERSIONS Linux/KDE Plasma: openSUSE Tumbleweed 20240915 KDE Plasma Version: 6.1.5 KDE Frameworks Version: 6.6.0 Qt Version: 6.7.2 ADDITIONAL INFORMATION In my setup the external monitors are connected through a docking station.
Can't reproduce on git master. Does it happen 100% reliably for you?
(In reply to Zamundaaa from comment #1) > Can't reproduce on git master. Does it happen 100% reliably for you? No, this appears to happen randomly. I just tried to reproduce this on two different laptops. On the first one where I first observed the issue, I could not reproduce the issue 4 times in a row. After almost giving up, I took the other laptop, that I just disconnected before from the dock, and there I could see it. So, this gives me a 1 out of 5 times. I've been trying the following approaches to rule out what the correct procedure could be, but so far none has shown consistency: * Have Firefox maximised or not * Putting laptop to sleep via closing the lid or via the menu * Locking the session before closing the lid Any ideas?
I just had this issue appear again, after disconnecting from the dock the Firefox window remained outside the laptop screen. After reconnecting the dock it was accessible again on the external monitor. After disconnecting the dock again, the window switched to the laptop screen. I observe that sleeping is not a requirement and this issue only happens occasionally. So far I cannot find a reliable reproducer, outside "it sometimes happens".
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME. For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging. Thank you for helping us make KDE software even better for everyone!
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.