Bug 459170 - kwin resizes all windows to minimum width if multiscreen configuration changes
Summary: kwin resizes all windows to minimum width if multiscreen configuration changes
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (other bugs)
Version First Reported In: 5.25.5
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-15 15:32 UTC by Jens
Modified: 2023-07-26 20:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 5.27
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jens 2022-09-15 15:32:35 UTC
STEPS TO REPRODUCE
1. install KDE on multimonitor system (in my case primary right, FullHD, secondary left, QHD)
2. Disconnect the secondary screen. All windows will be moved to the primary screen. So far, so good.
3. Reconnect the secondary screen.

OBSERVED RESULT
Windows will sometimes be moved halfway (!) to the secondary screen so they are split between screens
Windows will always be resized to their minimum possible width (e.g. Dolphin, Konsole, etc). See screenshot.

EXPECTED RESULT
Windows should be either not moved at all, or (ideally - and this was the case until ~6 months ago) put back to their original position with the dualscreen config. This requires that kwin remembers the window position of each window when the screen config changes, until it is resized or moved, and restores it when a previous screen config is being restored.

SOFTWARE/OS VERSIONS: KDE Neon with Frameworks 5.25.5 and all updates applied.
Comment 1 Nate Graham 2022-09-15 17:13:02 UTC
This should be substantially improved or fixed in Plasma 5.26. Can you install the beta version (which was just released today) and see if it's better now? Thanks!
Comment 2 Jens 2022-09-15 18:17:08 UTC
Are there KDE Neon packages for 5.26beta? Then it would be no problem to test ...
Comment 3 Nate Graham 2022-09-15 18:18:33 UTC
Neon Testing should be getting the 5.26 beta soon.
Comment 4 Jens 2022-09-23 07:48:18 UTC
Hi,
I now have these packages and the problem seems to have been fixed already:

ii  kwin-addons                                   4:5.25.5-0xneon+20.04+focal+release+build58    amd64        additional desktop and window switchers for KWin
ii  kwin-common                                   4:5.25.5-0xneon+20.04+focal+release+build77    amd64        KDE window manager, common files
ii  kwin-data                                     4:5.25.5-0xneon+20.04+focal+release+build77    all          KDE window manager data files
ii  kwin-style-breeze                             4:5.25.5-0xneon+20.04+focal+release+build61    amd64        KWin Breeze Style
ii  kwin-wayland                                  4:5.25.5-0xneon+20.04+focal+release+build77    amd64        KDE window manager, wayland version, PREVIEW release
ii  kwin-wayland-backend-drm                      4:5.25.5-0xneon+20.04+focal+release+build77    amd64        KDE window manager drm plugin
ii  kwin-x11                                      4:5.25.5-0xneon+20.04+focal+release+build77    amd64        KDE window manager, X11 version
ii  libkwineffects13                              4:5.25.5-0xneon+20.04+focal+release+build77    amd64        KDE window manager effects library
ii  libkwinglutils13                              4:5.25.5-0xneon+20.04+focal+release+build77    amd64        KDE window manager gl utils library
ii  libkwinxrenderutils13                         4:5.25.5-0xneon+20.04+focal+release+build77    amd64        KDE window manager render utils library

I'll also check 5.26 when it appears and then close this bug if the problem is confirmed to be fixed.
Thanks!!
Comment 5 Nate Graham 2022-09-23 19:18:19 UTC
Great, thanks!
Comment 6 Bug Janitor Service 2022-10-08 04:53:46 UTC
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!
Comment 7 Jens 2022-10-08 10:10:46 UTC
Hello, with the current installed packages the bug is unfortunately not fixed yet. The issue seems to appear less frequently but it still appears when changing the monitor configuration.
Comment 8 Nate Graham 2023-07-26 20:18:59 UTC
This should be fixed in Plasma 5.27 now. I can't reproduce it there or in the upcoming Plasma 6.