Bug 449501 - Cursor is too large on Wayland
Summary: Cursor is too large on Wayland
Status: RESOLVED INTENTIONAL
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-02 13:38 UTC by Nicolas Fella
Modified: 2022-02-14 13:35 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Cursor on X11 (380.92 KB, image/png)
2022-02-02 13:38 UTC, Nicolas Fella
Details
Cursor on Wayland (405.44 KB, image/png)
2022-02-02 13:39 UTC, Nicolas Fella
Details

Note You need to log in before you can comment on or make changes to this bug.
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.