Bug 423390 - Bottom Plasma panel and desktop are not fully adjacent to screen border (1 pixel on the right and bottom) when PLASMA_USE_QT_SCALING=1 is set on X11
Summary: Bottom Plasma panel and desktop are not fully adjacent to screen border (1 pi...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.18.5
Platform: unspecified Linux
: NOR normal
Target Milestone: 1.0
Assignee: veggero
URL:
Keywords: multiscreen, regression, usability
: 428109 434315 463495 Sirno (view as bug list)
Depends on:
Blocks: 356446
  Show dependency treegraph
 
Reported: 2020-06-23 10:01 UTC by yourik
Modified: 2024-03-10 19:18 UTC (History)
12 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
This is a screenshot of the screen region containing the right-aligned panel. Please note the 1px margin on the right side that should not be there (45.50 KB, image/png)
2020-06-23 10:01 UTC, yourik
Details
Screenshot (29.63 KB, image/jpeg)
2020-06-23 18:43 UTC, Nate Graham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yourik 2020-06-23 10:01:10 UTC
Created attachment 129600 [details]
This is a screenshot of the screen region containing the right-aligned panel. Please note the 1px margin on the right side that should not be there

SUMMARY
The right aligned panel does not fully touch the right screen edge but there is actually a 1px line  between the panel and the screen edge, which lets the wallpaper shine through and also means a button positioned to the right-most on the panel is not clicked when clicking the lower right corner of the screen.

STEPS TO REPRODUCE
1. Start with a desktop with no panel on the bottom of the screen.
2. Add a panel to the bottom screen edge
3. Set the panel alignment to "right" with
   right click -> edit panel -> more settings
4. Pull the width to less than maximized, e.g. just half of the screen.
(5.) Choose a contrasting wallpaper image to make the result more visible.

OBSERVED RESULT
There is now a 1px line between the right-aligned panel and the right screen edge.

EXPECTED RESULT
The panel should be fully adjacent to the right screen edge without a border or margin inbetween.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro Linux KDE
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.1
Qt Version: 5.15.0

ADDITIONAL INFORMATION
I'm using Manjaro Linux with KDE plasma and have multiple panels on the bottom of the screen for a specific look and feel. One of the panels is center-aligned, one is left-aligned and another is right-aligned.
Comment 1 Nate Graham 2020-06-23 18:43:59 UTC
Created attachment 129610 [details]
Screenshot

I can confirm. In my case it's not just the panel, either; the entire desktop area is shifted by one pixel (or two pixels in my case with a 4k screen and 200%+ scale factor). You can see this easily by using a plain white background and dragging a window off-screen. See the attached screenshot.

This is quite annoying as it breaks Fitts' law for the bottom-right corner.

Before anyone asks, I don't have a right side Touch Screen Edge set (which would make this similar to or a duplicate of Bug 387775)
Comment 2 Nate Graham 2020-06-23 19:05:33 UTC
FWIW I also see this with the bottom screen edge, not just the right one.
Comment 3 Nate Graham 2021-03-17 22:50:11 UTC
*** Bug 434315 has been marked as a duplicate of this bug. ***
Comment 4 Nate Graham 2021-03-17 22:52:46 UTC
With the new margins feature in Plasma 5.21, this has changed slightly: task Manager applets on a bottom panel now respect Fitts' law for me, but not other applets. I feel like the bug is in the margin handling and click forwarding code.

Niccolò, since you're pretty familiar with this now, could you take a look?

Also bumping to HI since breaking Fitts' law always annoys users and generates duplicate bug reports.
Comment 5 Nate Graham 2021-07-26 21:08:54 UTC
This is caused by using Qt scaling on X11, which is not supported and is known to cause this kind of bug. Sooooo don't do it. :)

If you have PLASMA_USE_QT_SCALING=1 set in your environment, unsetting it should fix the problem.
Comment 6 Nate Graham 2021-07-28 17:06:24 UTC
Re-opening since the blocked bug is also re-opened and we may want to do it after all.

Could be similar to Bug 428895.
Comment 7 Nate Graham 2022-01-21 05:11:31 UTC
The thing this is a blocker for (Bug 356446) is closed now, and doing this was never supported anyway.

Unfortunately I think we have to close this. Folks who want a decent hidpi experience will have to use Wayland and look forward to upcoming changes to improve the experience for XWayland apps in particular.

Sorry everyone. :(
Comment 8 Fushan Wen 2022-07-03 15:28:34 UTC
Can reproduce at 150% scale.
Comment 9 Fushan Wen 2022-07-03 15:31:35 UTC
*** Bug 428109 has been marked as a duplicate of this bug. ***
Comment 10 Grief 2022-11-05 11:24:05 UTC
(In reply to Nate Graham from comment #7)
> Unfortunately I think we have to close this. Folks who want a decent hidpi
> experience will have to use Wayland and look forward to upcoming changes to
> improve the experience for XWayland apps in particular.
> 
> Sorry everyone. :(

I doubt it's fair to recommend wayland when this page is not empty: https://community.kde.org/Plasma/Wayland_Showstoppers
Hidpi support under wayland is even worse than under x11.
Comment 11 veggero 2022-11-06 21:30:47 UTC
*** Bug 461473 has been marked as a duplicate of this bug. ***
Comment 12 veggero 2022-11-06 21:31:19 UTC
Re-opening as I can reproduce on Wayland too and assigning it to me
Comment 13 veggero 2022-11-06 21:53:16 UTC
Since this bug report ended up being modified to be about the bug "Bottom Plasma panel and desktop are not fully adjacent to screen border (1 pixel on the right and bottom) when PLASMA_USE_QT_SCALING=1 is set on X11", I'm closing this again to move the discussion to the new 461473 that has the correct title; yourik@live.de please refer to that bug instead of this one.
Comment 14 Nate Graham 2023-09-18 20:34:41 UTC
*** Bug 463495 has been marked as a duplicate of this bug. ***
Comment 15 Nate Graham 2024-03-08 21:17:14 UTC
Re-opening as the original issue is still happening, and becoming more common now since QT scaling is on by default for X11 in Plasma 6.
Comment 16 Nate Graham 2024-03-08 21:17:26 UTC
*** Bug 482683 has been marked as a duplicate of this bug. ***
Comment 17 Andrew Brouwers 2024-03-10 18:22:11 UTC
I see a similar issue, occasionally, on wayland + plasma 6.  I'm at 150% scaling, and this will happen sporadically.  Restarting the desktop fixes it, but it'll eventually come back (after some yet-to-be-determined action occurs).
Comment 18 Nate Graham 2024-03-10 19:18:45 UTC
This bug report is about X11; please open a new one to track the issue on Wayland.