Bug 431488 - If two screens are not aligned at top edges, maximized window may have a vertical offset on the primary screen
Summary: If two screens are not aligned at top edges, maximized window may have a vert...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.20.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-12 11:45 UTC by postix
Modified: 2023-03-14 17:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:
postix: X11+


Attachments
Screenshot (a): Bottom edge aligned (2.12 MB, image/png)
2021-01-12 11:45 UTC, postix
Details
Screenshot (b): Panel on bottom, bottom aligned (1.94 MB, image/png)
2021-01-12 11:53 UTC, postix
Details
Screenshot (c): Panel on top, aligned on top edges (2.69 MB, image/png)
2021-01-12 11:57 UTC, postix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2021-01-12 11:45:32 UTC
Created attachment 134772 [details]
Screenshot (a): Bottom edge aligned

SUMMARY

This bug is about X11 only. There are two monitors: 2560x1440 on 14" and next to it a 3840x2560 on 27", both scaled 2x.
If the two top edges of the two monitors are aligned in KScreen KCM, everything works as expected. However, once the smaller screen on the left becomes vertically shifted downwards in KScreen KCM, maximized windows move downwards as well.
I.e. it becomes impossible to place windows above a certain screen height respectively maximized apps won't cover the whole screen anymore but part of their windows will be below the actual screen. 

In the first screenshot (a), the smaller screen was moved downwards, so that the two bottom edges align and maximized Dolphin demonstrates the issue.


SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2
Comment 1 postix 2021-01-12 11:53:58 UTC
Created attachment 134774 [details]
Screenshot (b): Panel on bottom, bottom aligned

In the post before, the panel was on top of the screen.
I then tried to study the effect what happens if the panel is on the bottom. You can see that whole drawn screen shifts upwards:

Not only in the screenshot but also on the actual screen the part below the panel was black.
Additionally, the maximized Dolphin window did no longer cover the whole screen modulo the panel.
Comment 2 postix 2021-01-12 11:57:21 UTC
Created attachment 134775 [details]
Screenshot (c): Panel on top, aligned on top edges

Finally, coming  from the second post, where the panel was on the bottom + the two bottom screen edges were aligned in KScreen KCM:

The panel was moved to the top edge again and then two screens were aligned on their top edges. You can see that half of the panel forgot to move upwards now. :)