Bug 453589 - Wakeup after Standby: Windows on main screen get resized to the resolution of the second monitor
Summary: Wakeup after Standby: Windows on main screen get resized to the resolution of...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (show other bugs)
Version: 5.24.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: multiscreen
Depends on:
Blocks:
 
Reported: 2022-05-09 18:28 UTC by Maximilian Böhm
Modified: 2023-07-26 19:11 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.27.0


Attachments
After standby: Window got resized to 1/4 of the main screen (325.59 KB, image/png)
2022-05-09 18:28 UTC, Maximilian Böhm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maximilian Böhm 2022-05-09 18:28:08 UTC
Created attachment 148686 [details]
After standby: Window got resized to 1/4 of the main screen

This bug started with Plasma 5.24 and since my Enterprise Waiting failed, you get a bug report: After Wakeup from Standby, but not each time, all my windows on the main 4K monitor get sized to 1/4 and cramped to the bottom right corner. My setup here is a 4K DP monitor and a HDMI AV-Receiver which does only FHD and which I only enable when I switch from S/PDIF to HDMI audio to make use of 5.1… The HDMI connection is disabled in my daily use. But Kwin seems to confuse something and does a resize of every open window on the 4K monitor to 1/4 of their size (which equals FHD resolution) on Wakeup after Standby. It’s incredibly annoying. I will attach a screenshot.

Linux: Arch
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
X.org used
Comment 1 BT 2022-06-23 09:28:47 UTC
I have a single monitor with resolution of 3840x2160 and a DPI of 162. After exiting a Windows game via Wine, all windows that aren’t maximized are resized to 1/4 and placed in the bottom right corner. All the the Windows games are set to 1920x1080 resolution.

The issue started with Plasma 5.24. I reverted to 5.23 for a while but it was preventing other updates on my system so I had to upgrade. The issue persists with 5.25.

Linux: Gentoo
KDE Plasma Version: 5.25.1
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.4
Display: X11
Comment 2 Bug Janitor Service 2022-06-23 16:13:41 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/2573
Comment 3 Zamundaaa 2022-08-31 21:06:23 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 444082, bug 454003

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
Comment 4 Maximilian Böhm 2022-10-23 18:23:42 UTC
Still occurring on Plasma 5.26.1.
Comment 5 BT 2023-02-15 09:34:06 UTC
Updated to KDE Plasma 5.27.0 and the issue appears to have been fixed. I've only done brief testing so it would be nice if other users can confirm as well.
Comment 6 Maximilian Böhm 2023-02-16 14:05:26 UTC
(In reply to BT from comment #5)
> Updated to KDE Plasma 5.27.0 and the issue appears to have been fixed. I've
> only done brief testing so it would be nice if other users can confirm as well.

I will test it soon but don’t get too excited: This issue appeared only every now and then on my PC recently, this means this needs a longer testing phase to confirm it’s really fixed.
Comment 7 Maximilian Böhm 2023-04-11 20:47:42 UTC
I can now say that it is happening way more seldom, mostly after black screen resume and monitor changes. It isn’t happening anymore on standard wakeups after standby for me. But I still get annoyed almost daily by resized windows.

KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.8
Comment 8 Nate Graham 2023-07-26 19:11:08 UTC
> It isn’t happening anymore on standard wakeups after standby for me.
In that case, this specific bug is fixed. Can you submit a new bug report for the new behavior you're seeing? It will have a different root cause that needs to be investigated and fixed separately. Thanks!