Bug 422559 - when using Qt scaling on X11, Plasma dialog corners and shadows do not respect the scale factor
Summary: when using Qt scaling on X11, Plasma dialog corners and shadows do not respec...
Alias: None
Product: libplasma
Classification: Frameworks and Libraries
Component: libplasma (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: Marco Martin
: 473059 (view as bug list)
Depends on:
Blocks: 356446
  Show dependency treegraph
Reported: 2020-06-07 00:37 UTC by Nate Graham
Modified: 2023-08-07 22:07 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:

Dialogs with small shadows (436.98 KB, image/png)
2020-06-07 00:37 UTC, Nate Graham

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2020-06-07 00:37:54 UTC
Created attachment 129113 [details]
Dialogs with small shadows

OpenSUSE Tumbleweed with Qt 5.15 and all KDE software built from today's git master.

1. Set scale factor to 200%
2. Reboot
3. Open Kickoff or any other Plasma dialog

Shadows do not scale and are super tiny

Shadows scale and are normal sized
Comment 1 Nate Graham 2020-06-07 00:48:57 UTC
Not a problem on Wayland.
Comment 2 Nate Graham 2020-06-15 17:22:50 UTC
This seems to have been fixed recently.
Comment 3 Nate Graham 2020-06-23 19:41:08 UTC
Hmm, this started happening on X11 again. Seems to semi-randomly toggle on and off.
Comment 4 Nate Graham 2021-03-11 20:40:53 UTC
What's actually happening is that shadows look correct on Wayland, and then when I log back into my X11 session, the SVG cache isn't cleared, so I have correct nice-looking appropriately-scaled shadows on X11 until the next cache invalidation or manual cache clear event.

So the display of correctly-scaled shadows works fine in X11, it's just that whatever is generating them in the first place isn't scale-factor-aware. Seems like it might be an easy fix.
Comment 5 Nate Graham 2021-07-26 21:06:44 UTC
This is caused by using Qt scaling on X11, which is not supported cna is known to cause this kind of bug. Sooooo don't do it. :)
Comment 6 Nate Graham 2021-07-28 16:44:27 UTC
Re-opening to refresh the blocking status since Bug 356446 is also re-opened.
Comment 7 Nate Graham 2021-07-28 16:46:40 UTC
Moving to plasma-framework since that's where the bug is.
Comment 8 Nate Graham 2022-01-21 05:10:11 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 9 Fushan Wen 2022-10-28 17:13:47 UTC
This can be fixed by rounding up devicePixelRatio in framesvgitem
Comment 10 Bug Janitor Service 2022-10-29 07:33:38 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/plasma-framework/-/merge_requests/637
Comment 11 Nate Graham 2023-08-07 21:03:44 UTC
*** Bug 473059 has been marked as a duplicate of this bug. ***