Bug 444949 - When connecting external primary screen on the left, maximized windows do not move over [regression]
Summary: When connecting external primary screen on the left, maximized windows do not...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.23.0
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2021-11-04 14:24 UTC by Ralf Jung
Modified: 2022-09-08 18:09 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Jung 2021-11-04 14:24:26 UTC
SUMMARY
With my laptop, I switch from single-screen to dual-screen setup and back at least daily. When the external screen is connected, I want all windows to be moved to that screen, since it is used as the main screen. (The laptop screen is turned on only for the rare case where I need some extra screen space, and to work around https://gitlab.freedesktop.org/xorg/xserver/-/issues/948.) That used to work fine up until Plasma 5.21, but with Plasma 5.23 is stopped working, meaning I now spend a bunch of time each day to move windows back and forth, which is quite annoying.

STEPS TO REPRODUCE
1. Connect the external screen and configure it to be on the left of the internal screen, and make the external screen primary.
2. Disconnect the external screen. Have some windows open on the internal screen; some maximized, some not.
3. Connect the external screen.

OBSERVED RESULT
The non-maximized windows move over to the external screen (presumably because they remain at screen coordinate [0,0], and since the external screen is on the left, that coordinate is on the external screen). However, all the maximized windows remain on the internal screen (meaning their screen coordinate changes since the internal screen is 1920px to the right).

EXPECTED RESULT
All windows should move to the external screen. This is what happened in earlier versions of Plasma/kwin (up until 5.21, I did not test 5.22).

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux
KDE Plasma Version: 5.23.0
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 5.14.0-2-amd64 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Xeon® CPU E3-1505M v5 @ 2.80GHz
Memory: 31,2 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics P530

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-11-08 19:16:06 UTC
I *think* we fixed this again for Plasma 5.24. Any chance you could use plasma unstable/git master packages to make sure that the fix works for you? That would be super helpful.
Comment 2 Ralf Jung 2021-11-08 19:56:35 UTC
I'm a bit wary of doing such experiments on my main production system. ;)

Is there a live system one could use to test this?
Comment 3 Nate Graham 2021-11-08 20:45:46 UTC
KDE Neon Unstable in a live session could be used for this, yeah.
Comment 4 Ralf Jung 2022-03-21 18:46:25 UTC
I am now on plasma-desktop 4:5.24.3-1, kwin-x11 4:5.24.3-1 (Debian packages), and when I just plugged in my external screen the Windows still stayed on the laptop screen. So the bug still seems to be present in that version.
Comment 5 Nate Graham 2022-09-08 18:09:00 UTC
This should be fixed in Plasma 5.26.