Bug 480234 - Maximized windows go under dock after disconnecting monitor
Summary: Maximized windows go under dock after disconnecting monitor
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (show other bugs)
Version: 5.27.10
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: multiscreen
Depends on:
Blocks:
 
Reported: 2024-01-23 16:00 UTC by Daniel Petrov
Modified: 2024-02-16 18:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 6.0
Sentry Crash Report:


Attachments
Dual display bug? (1.21 MB, video/mp4)
2024-01-25 22:20 UTC, Daniel Petrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Petrov 2024-01-23 16:00:40 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Move the dock to in between the two displays
    - Eg, if your primary monitor is to the left of the secondary monitor, move the panel to the right side of the primary montior
2. Maximize a window (say Firefox) on the laptop/primary monitor
3. Connect a second display
4. Move that window over to the second display and maximize the window
5. Disconnect the monitor

OBSERVED RESULT
The window moves back to the primary display (expected), remains maximized (expected), but the window is maximized below the panel, even when the panel is set to 'Always Visible.'

EXPECTED RESULT
Maximizing the window takes the panel into account, resizing accordingly.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 23.10
(available in About System)
KDE Plasma Version: 5.27.0
KDE Frameworks Version: 5.112.0
Qt Version: 5.15.10
Graphics Platform: X11

ADDITIONAL INFORMATION
Minimizing and maximizing the window again does not resolve the issue. You should toggle the panel visibility to update the usable area.
Comment 1 Daniel Petrov 2024-01-25 22:18:26 UTC
Now I don't know if this is X or KWin, but two displays are detected...
Comment 2 Daniel Petrov 2024-01-25 22:20:12 UTC
Created attachment 165218 [details]
Dual display bug?
Comment 3 Nate Graham 2024-02-16 18:11:03 UTC
Cannot reproduce the issue in Plasma 6 Wayland, so let's call it fixed there. But please do feel free to re-open this bug report if you discover after upgrading the Plasma 6 that it still happens. Thanks a lot!