Bug 426795 - [Wayland] One line of transparent pixels remains on top of maximized windows when using a HiDPI scale factor
Summary: [Wayland] One line of transparent pixels remains on top of maximized windows ...
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 5.19.5
Platform: Manjaro Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-21 06:45 UTC by joseph.chataignon
Modified: 2022-01-19 19:00 UTC (History)
2 users (show)

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


Attachments
Screenshot of Wayland on Plasma 5.21.4 with 1px transparent line on top of maximized window, and to left of titlebar (247.28 KB, image/png)
2021-04-19 22:27 UTC, Paul McAuley
Details

Note You need to log in before you can comment on or make changes to this bug.
Description joseph.chataignon 2020-09-21 06:45:54 UTC
On High-DPI screen with scaling 150%, maximizing windows lets a 1-pixel high line uncovered at the top of the screen. I can see the top line of my desktop wallpaper. This happens under Wayland.

STEPS TO REPRODUCE
1. Have KDE installed and a high-DPI screen
2. Open a Wayland session, set scaling to 150%
3. maximize a window 

OBSERVED RESULT

The window does not cover the screen exactly to the top. A line 1 pixel high stays uncovered by the maximized window.

EXPECTED RESULT
The maximized window should cover the whole screen.


SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.73.0
Qt Version: 5.15.0
Kernel Version: 5.8.6-1-MANJARO
Graphics Processor: Mesa Intel UHD Graphics 620
Comment 1 Paul McAuley 2021-04-19 22:27:33 UTC
Created attachment 137715 [details]
Screenshot of Wayland on Plasma 5.21.4 with 1px transparent line on top of maximized window, and to left of titlebar

I also get this on Wayland with 250% scaling. For me there is also a 1px line on the left edge of the Breeze titlebar. 

In the attached screenshot the line appears purple as this is the colour of the standard Plasma 5.21 wallpaper behind.
Comment 2 Paul McAuley 2021-04-19 22:30:00 UTC
It also occurs at 200%
Comment 3 Paul McAuley 2021-04-19 22:34:43 UTC
Operating System: openSUSE Leap 15.2
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2
Kernel Version: 5.3.18-lp152.72-preempt
OS Type: 64-bit
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-7700HQ CPU @ 2.80GHz
Memory: 31.2 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 630
Comment 4 Nate Graham 2021-04-20 14:55:50 UTC
Cannot reproduce on Wayland FWIW.
Comment 5 Vlad Zahorodnii 2022-01-19 19:00:38 UTC
The renderer in the drm backend used to calculate the viewport size as logical size * scale, it was changed a while ago and it uses the mode size, so this bug should be fixed.