Bug 428895 - [x11] Maximized windows don't fill 1px of screen on HiDPI
Summary: [x11] Maximized windows don't fill 1px of screen on HiDPI
Status: RESOLVED DUPLICATE of bug 391956
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: 5.20.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2020-11-09 16:24 UTC by elman
Modified: 2021-11-07 00:07 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
1px gap (28.40 KB, image/png)
2020-11-09 16:24 UTC, elman
Details
1px panel-window separation, manifestation 1 (243.55 KB, image/png)
2021-04-18 16:13 UTC, Paul McAuley
Details
1px panel-window separation, manifestation 2 (246.14 KB, image/png)
2021-04-18 16:13 UTC, Paul McAuley
Details
manifestation 3, correct appearance but cannot close the window from extreme top-right (265.37 KB, image/png)
2021-04-18 16:24 UTC, Paul McAuley
Details
Requested output of those commands (9.63 KB, text/plain)
2021-07-28 13:13 UTC, Nate Graham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description elman 2020-11-09 16:24:40 UTC
Created attachment 133169 [details]
1px gap

SUMMARY
When I maximize some windows they won't fill whole screen and there is 1px gap between window and bottom panel. I have 4K display. Panel height is 44, but same issue occurs with 42 and 46. For me it is always reproducible for example with Kate, Firefox or PhpStorm (snap).

STEPS TO REPRODUCE
1. Set wallpaper to some colorful picture
2. Maximize window

OBSERVED RESULT
There is 1px gap.

EXPECTED RESULT
There should be no gap.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro testing
KDE Plasma Version: 5.20.2
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1
Comment 1 Nate Graham 2020-11-09 17:26:30 UTC
Can confirm. Seems related to Bug 423390.
Comment 2 Nate Graham 2021-03-10 21:33:20 UTC
*** Bug 413392 has been marked as a duplicate of this bug. ***
Comment 3 Paul McAuley 2021-04-14 18:44:16 UTC
This issue only happens for me when PLASMA_USE_QT_SCALING=1 is set. I get a gap between the panel (regardless of screen edge) and a maximized window.
Comment 4 Nate Graham 2021-04-14 18:52:56 UTC
Can confirm that.
Comment 5 Paul McAuley 2021-04-14 18:53:26 UTC
(In reply to Paul McAuley from comment #3)
> This issue only happens for me when PLASMA_USE_QT_SCALING=1 is set. I get a
> gap between the panel (regardless of screen edge) and a maximized window.

Further information: I am using a 2.5x scale factor
Comment 6 Paul McAuley 2021-04-18 16:11:47 UTC
(In reply to Paul McAuley from comment #3)
> This issue only happens for me when PLASMA_USE_QT_SCALING=1 is set. I get a
> gap between the panel (regardless of screen edge) and a maximized window.

I want to correct myself -- what I said above is not true. The following two screenshots were taken within seconds of each other on a fresh KDE Neon 5.21.80 install on X11 without PLASMA_USE_QT_SCALING set. You can see that there is a 1px gap on both screenshots. In the first screenshot you can se a 1px of purple belonging to the standard Plasma 5.21 wallpaper. In the second the purple is only visible half-way down the screen, with a white/light grey 1px line on the left side of the titlebar.

If you set PLASMA_USE_QT_SCALING ON I think it manifests more like as the first screenshot and hence is more obvious.
Comment 7 Paul McAuley 2021-04-18 16:13:16 UTC
Created attachment 137685 [details]
1px panel-window separation, manifestation 1
Comment 8 Paul McAuley 2021-04-18 16:13:47 UTC
Created attachment 137686 [details]
1px panel-window separation, manifestation 2
Comment 9 Paul McAuley 2021-04-18 16:24:12 UTC
Created attachment 137687 [details]
manifestation 3, correct appearance but cannot close the window from extreme top-right

This is another screenshot a few seconds later, again without PLASMA_USE_QT_SCALING. In this case there is no 1px visible gap, but in this case I also experience bug 435674
Comment 10 Nate Graham 2021-07-26 21:10:49 UTC
Can confirm with the Plasma X11 session when using Qt scaling as well as Plasma scaling. Not related to that, then. Must be exclusively a KWin issue.
Comment 11 Vlad Zahorodnii 2021-07-28 10:07:03 UTC
(In reply to Nate Graham from comment #10)
> Can confirm with the Plasma X11 session when using Qt scaling as well as
> Plasma scaling. Not related to that, then. Must be exclusively a KWin issue.

No, not at all.

---

Can you please provide the xwininfo and the xprop output for one of the windows that has 1px gap between itself and the panel? Also, can you provide us the output of `qdbus org.kde.KWin /KWin supportInformation` and the scale factor that you use?
Comment 12 Nate Graham 2021-07-28 13:13:51 UTC
Created attachment 140368 [details]
Requested output of those commands

Target window is Firefox. Scale factor is 200%. Physical screen geometry is 3840 x 2160 and KScreen reports the scaled resolution to be 1920x1080. In my setup, the Plasma panel is on the left screen edge and maximized windows have a 1px gap on the bottom screen edge.

I am attaching the output of those commands.
Comment 13 Nate Graham 2021-07-29 23:27:27 UTC
*** Bug 439428 has been marked as a duplicate of this bug. ***
Comment 14 Nate Graham 2021-11-07 00:07:49 UTC

*** This bug has been marked as a duplicate of bug 391956 ***