Bug 474341

Summary: Window height does not scale properly in fractional scaling wayland multi-monitor setup
Product: [Plasma] kwin Reporter: Joao Kdouk <xadestar>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: aleixpol, nate
Priority: NOR Keywords: multiscreen
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.0
Sentry Crash Report:
Attachments: Problem Screenshot
Display Settings

Description Joao Kdouk 2023-09-09 15:52:56 UTC
Created attachment 161526 [details]
Problem Screenshot

SUMMARY
Programs do not go full height (maximized) in the primary monitor when the secondary monitor uses Wayland fractional scaling. 


STEPS TO REPRODUCE
1. Plug in a secondary monitor and set it to 125% scaling on Wayland.
2. Open Firefox on the primary monitor, without fractional scaling (on the primary monitor)
3. Try to maximize the browser window.

OBSERVED RESULT
You will see that it does not cover the full height of the window, being limited to the fractional scaling of the second window, no matter what you do. An attachment has been added showing how the screen looks. I have Firefox (first window from top to bottom of the attached image), then Visual Studio Code in the back, and finally my bottom application panel.

EXPECTED RESULT
It should cover the full height of the screen. See the difference between Visual Studio Code and Firefox in the attached picture.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.27.7-2
KDE Plasma Version: 5.27.7-2
KDE Frameworks Version: 5.109.0-1
Qt Version: 5.15.10
Comment 1 Joao Kdouk 2023-09-09 15:59:53 UTC
Small comment here. It looks like the problem is in fact if the secondary monitor has a bottom panel. Changing its height also changes the gap between the primary monitor window and bottom panel.
Comment 2 Joao Kdouk 2023-09-09 16:02:30 UTC
One more comment here, just noticed it has to do with an offset between the two monitor. If the bottom of the two displays is not aligned in the settings, then the gap will be experienced. I have been able to fix it but just align the bottom of the two display, but I will keep the ticket open for now, perhaps this can be easily fixed in a future release of KDE Plasma.
Comment 3 Nate Graham 2023-09-11 21:13:05 UTC
Can you attach a screenshot that shows your settings on the Display Configuration page in System Settings?
Comment 4 Joao Kdouk 2023-09-11 21:15:31 UTC
Created attachment 161566 [details]
Display Settings
Comment 5 Joao Kdouk 2023-09-11 21:16:24 UTC
Added another screenshot with the display settings alongside the problem. In this case, firefox does not fully maximize, and we can clearly see VSCode maximized in the back.
Comment 6 Nate Graham 2023-09-12 17:33:30 UTC
Cannot reproduce with those exact settings in Plasma 6, so it looks like it's been fixed there!