Bug 392155 - Theme preview shows smaller cursors under Wayland when display scaling is used
Summary: Theme preview shows smaller cursors under Wayland when display scaling is used
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_cursortheme (show other bugs)
Version: 5.23.90
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 469323 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-03-22 00:20 UTC by Patrick Silva
Modified: 2023-10-12 16:06 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0


Attachments
cursor kcm under X11 (58.81 KB, image/png)
2018-03-22 00:20 UTC, Patrick Silva
Details
cursor kcm under Wayland (70.12 KB, image/png)
2018-03-22 00:21 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2018-03-22 00:20:43 UTC
Created attachment 111548 [details]
cursor kcm under X11

Compare screenshots taken under X11 and Wayland.
Comment 1 Patrick Silva 2018-03-22 00:21:37 UTC
Created attachment 111549 [details]
cursor kcm under Wayland
Comment 2 Alexander Mentyu 2018-04-19 16:41:52 UTC
Link to discussion https://phabricator.kde.org/D8692
How to install and test new cursor KCM if i'm not on neon?
Comment 3 Matej Mrenica 2020-05-01 14:47:40 UTC
For me, at least, on Xorg preview size matches my cursor size and on Wayland the preview is actually smaller.
Comment 4 Nate Graham 2020-07-17 14:19:31 UTC
Same here.
Comment 5 Patrick Silva 2020-07-17 20:16:07 UTC
(In reply to Matej Mrenica from comment #3)
> For me, at least, on Xorg preview size matches my cursor size and on Wayland
> the preview is actually smaller.

On Wayland session of neon unstable the previews of cursors only are smaller when I use fractional display scaling (125% in my case).

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.19.80
KDE Frameworks Version: 5.73.0
Qt Version: 5.14.2
Comment 6 Nicolas Fella 2022-02-02 13:56:02 UTC
It's not only fractional scaling, it's broken with any scale >1, including 2x

This seems to be because of a conceptual difference between X11 and Wayland. On X11 the cursor size is physical pixels, on Wayland it's logical pixels.
Comment 7 Nate Graham 2023-05-15 21:16:23 UTC
*** Bug 469323 has been marked as a duplicate of this bug. ***
Comment 8 Fushan Wen 2023-10-12 16:06:30 UTC
Git commit 5c74abe6349c92d86ecc7722916df560e7ebfb54 by Fushan Wen.
Committed on 12/10/2023 at 17:29.
Pushed by fusionfuture into branch 'master'.

kcms/cursortheme: fix blurry cursor preview when using fractional scaling

Scale the cursor preview pixmap in PreviewWidget instead of in QML,
which makes sure the source image is sharp.
Related: bug 413647
FIXED-IN: 6.0

M  +1    -9    kcms/cursortheme/ui/Delegate.qml
M  +24   -6    kcms/cursortheme/xcursor/previewwidget.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/5c74abe6349c92d86ecc7722916df560e7ebfb54