Bug 449501

Summary: Cursor is too large on Wayland
Product: [Plasma] kwin Reporter: Nicolas Fella <nicolas.fella>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal    
Priority: NOR    
Version: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=450213
Latest Commit: Version Fixed In:
Attachments: Cursor on X11
Cursor on Wayland

Description Nicolas Fella 2022-02-02 13:38:07 UTC
When running on Wayland the cursor is too large over most windows (Plasma, title bars, Qt, and Electron apps). The only apps where the cursor is appropriately sized I found are (wayland-native) Firefox and Thunderbird.

See screenshots for difference between X11 and Wayland

setup:
Plasma master, Nvidia GPU with 510 driver, 2 Monitors with 200% scaling
Comment 1 Nicolas Fella 2022-02-02 13:38:45 UTC
Created attachment 146175 [details]
Cursor on X11
Comment 2 Nicolas Fella 2022-02-02 13:39:10 UTC
Created attachment 146176 [details]
Cursor on Wayland
Comment 3 Nicolas Fella 2022-02-02 13:51:22 UTC
Setting the size to 24 makes it work as expected, so the behavior kind of makes sense. However there's an issue with the KCM showing the wrong preview size
Comment 4 Vlad Zahorodnii 2022-02-02 16:01:14 UTC
Cursor size means different things on x11 and wayland. On X11, it's in device pixels. On Wayland, the cursor size is in logical pixels and kwin upscales it as needed. You need to use 24 cursor size on wayland.

The cursor size issue in kcm is already reported https://bugs.kde.org/show_bug.cgi?id=392155.