Bug 444082 - wrong window behaviour on multi-monitor setup
Summary: wrong window behaviour on multi-monitor setup
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.23.1
Platform: Slackware Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2021-10-20 04:22 UTC by David Chmelik
Modified: 2022-08-31 21:06 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Chmelik 2021-10-20 04:22:23 UTC
SUMMARY

Windows started having wrong behaviour on multi-monitor setup.  I have three monitors: 4K in front of me (primary), 1080p drawing pad monitor to the right, classic 1600x1200 monitor above the 4K.  From both lower monitors, many popup Windows and ones newly set fullscreen don't stay where they are rather than going to the top monitor, which they shouldn't.  If I leave the PC unattended overnight or even until the screen blanks, all the programs on the right-hand half of my 4K monitor (stacked) have moved to the left half, and the program on the left half has moved to the right half, and sometimes a fullscreen one on the 1080p has moved to the 4K.

STEPS TO REPRODUCE
1. Upgrade to KDE 5.23.n
2. Do menu things to open popups, set programs/images fullscreen, and for the other bug let the screen blank for a time.
3. Pop-up windows and programs set fullscreen move to the top monitor. In the other bug, programs move to the other side of the screen or other monitor.

OBSERVED RESULT

Wrong window behaviour (described above already).

EXPECTED RESULT
Don't move popups, newly set fullscreen programs, or ones snapped into half the screen, or fullscreen on non-primary monitor, somewhere else: keep programs, popups, new & non-primary fullscreen programs in the position the user originally put them and process the popups and new fullscreens at that location.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Slackware64-current / 5.23.1
KDE Plasma Version: 5.23.1
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.3
Comment 1 Nate Graham 2021-10-20 15:11:22 UTC
Hmm, I think this was supposed to have been fixed in 5.23.1 with Bug 443787...
Comment 2 David Chmelik 2021-10-21 04:26:18 UTC
I stated I'm using 5.23.1 but it's all still happening.  Also the program on the left half of the 4K, after screen has been off a long time, usually moves up to the top monitor.
Comment 3 Bug Janitor Service 2022-06-23 16:13:38 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/2573
Comment 4 David Chmelik 2022-08-05 07:32:48 UTC
Happens similarly in other X Window System (X) window managers (WM) & desktop environments (DE) also so seems upstream.
Comment 5 Zamundaaa 2022-08-31 21:06:31 UTC
Git commit ba0799974ed7b30b973c6a6a40c35be4d30d2ca2 by Xaver Hugl.
Committed on 31/08/2022 at 20:30.
Pushed by zamundaaa into branch 'master'.

workspace: restore window position after output changes
Related: bug 455066, bug 374908, bug 454003, bug 453589

M  +1    -0    src/CMakeLists.txt
A  +197  -0    src/placementtracker.cpp     [License: GPL(v2.0+)]
A  +68   -0    src/placementtracker.h     [License: GPL(v2.0+)]
M  +6    -0    src/window.cpp
M  +3    -0    src/window.h
M  +29   -0    src/workspace.cpp
M  +3    -0    src/workspace.h

https://invent.kde.org/plasma/kwin/commit/ba0799974ed7b30b973c6a6a40c35be4d30d2ca2