Bug 424048

Summary: Preview of cursor theme on mouseover doesn't work on Wayland
Product: [Applications] systemsettings Reporter: Patrick Silva <bugseforuns>
Component: kcm_cursorthemeAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: kde, nate
Priority: NOR Keywords: wayland
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.20

Description Patrick Silva 2020-07-09 23:00:47 UTC
SUMMARY
On X11, we can preview the cursors of a cursor theme hovering over them.
However, this feature doesn't work on Wayland.

STEPS TO REPRODUCE
1. start Wayland session
2. open system settings > Cursors
3. hover over any cursor of any cursor theme

OBSERVED RESULT
nothing happens

EXPECTED RESULT
preview should work like on X11

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.19.80
KDE Frameworks Version: 5.72.0
Qt Version: 5.14.2
Comment 1 Bug Janitor Service 2020-07-10 11:02:46 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/58
Comment 2 David Redondo 2020-07-10 11:58:07 UTC
Git commit 9f4ad82c5b5c47f6e3a3ed78ce559de4db361c78 by David Redondo.
Committed on 10/07/2020 at 11:01.
Pushed by davidre into branch 'master'.

Use Qt to set cursor preview and make it work for wayland

No need for X specific fiddling, Qt will do the right thing.

M  +2    -31   kcms/cursortheme/xcursor/previewwidget.cpp

https://invent.kde.org/plasma/plasma-desktop/commit/9f4ad82c5b5c47f6e3a3ed78ce559de4db361c78