When turning screens on and off in a multiscreen setup, it's important that windows that don't have to move, don't move, and windows whose size doesn't need to change, doesn't change. Currently what happens is consistently wrong but entirely random. I'm on a dual screen setup, screens left and right. Left primary screen is a 21:9 3440x1440, right screen is 16:9 3840x2160. When the right screen is turned off and then back on again, random things happen. The most common are: a) that all windows move to the right hand screen, i.e. the secondary, and that the left hand screen is black and flickery, looking like the wallpaper vanished and was replaced with <void>. b) the all windows move to the left hand screen, but their heights are all reduced to around 30%. STEPS TO REPRODUCE 1. Dual screen setup, my particular setup is 21:9 3440x1440 primary and 16:9 3840x2160 not primary 2. Turn the right screen off. 3. Turn the right screen on. OBSERVED RESULT Sometimes: After step 2, all windows on the primary screen are reduced in height to around 30% and they are all moved to the bottom of the screen. I use a virtual desktop setup, and all windows on all virtual desktops are like this. The wallpaper on the primary screen is gone. Other times: After step 3, all windows are moved to the secondary screen and the primary screen is left empty. EXPECTED RESULT I expect everything on screen 1 to stay unchanged when screen 2 is turned off. I expect windows on screen 2 to move to screen 1. If I turn screen 2 back on, I am fine with nothing happening to windows on screen 1. Ideally, the windows that were pushed into screen 1 automatically go back. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Kubuntu 22.04 KDE Plasma Version: 5.24.4 KDE Frameworks Version: 5.92.0 Qt Version: 5.15.3
Is this on X11 or Wayland? Does it affect all windows, or only windows of some KDE apps?
(In reply to Nate Graham from comment #1) > Is this on X11 or Wayland? Does it affect all windows, or only windows of > some KDE apps? X11 and applies to all apps that don't have explicit size saved. My terminal windows remains unaffected. Very easy to reproduce... firefox fex, or Qt Creator, resize manually to approx 90% of size of screen both dimensions, window on the primary screen. Turn off the secondary screen, and the window immediately resizes to approx 30% height (width is unchanged). I think it has to do with the vertical resolution being different on the two screens maybe...
Seems likely, yeah. Does it happen in the Wayland session, or only in the X11 session?
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. 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. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone!
I’ve tried to enable wayland session but it’s completely broken, so I can’t say. This bug is very valid and trivial to reproduce so, no information needed about that.
I am observing the same issue, also on Kubuntu, using X11 on an amd embedded gpu. My setup is 1920x1200 primary and 3840x2160 secondary. When the secondary display is removed, I get the window resizing for non-maximized, non-tiled windows, they get squashed to a smaller vertical height and moved, but not changed in the horizontal dimension.
Would be interesting to know if this reproduced on Plasma 5.26 or later. those versions included more robust code for multimonitor window positioning.
(In reply to Nate Graham from comment #8) > Would be interesting to know if this reproduced on Plasma 5.26 or later. > those versions included more robust code for multimonitor window positioning. Is there a known distribution that packages 5.26 or later? I can try this if there's a liveusb image I can run it from.
Many do. Arch, Manjaro, openSUSE Tumbleweed, Fedora KDE, and Debian Sid spring to mind.
(In reply to Nate Graham from comment #11) > Many do. Arch, Manjaro, openSUSE Tumbleweed, Fedora KDE, and Debian Sid > spring to mind. Alright, I'll grab one of those and give it a try tomorrow.