Bug 368723

Summary: cursor size not respected on X11 window borders
Product: [Plasma] kwin Reporter: Jason A. Donenfeld <Jason>
Component: platform-x11-standaloneAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: major CC: 610400210, apalaum, bernie, bugseforuns, heri+kde, kde.org, kzhou97, postix, sebastien.guerin.news, victor
Priority: NOR    
Version: 5.12.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Animated gif showing the issue

Description Jason A. Donenfeld 2016-09-13 01:18:56 UTC
Try changing your cursor to a different one using systemsettings. It works mostly everywhere in KDE. However, this cursor update is not reflected on window borders. For example, try dragging the window using the top bar. You'll notice the cursor changes immediately from the one you wanted to the default one.

Ordinarily, this would just be a silly cosmetic bug of little consequence. However, in the case of HiDPI, this bug means that the cursor goes from being a normal size to being extra small (and thus unusable) when you mouse over a window border.

This causes significant usability impairments.

Reproducible: Always
Comment 1 Jason A. Donenfeld 2016-09-13 01:29:37 UTC
Interestingly, the issue with *which cursor* was fixed by running `ln -s /usr/share/cursors/xorg-x11 ~/.icons`. This seems most likely an unrelated bug, and I'll file another patch for it elsewhere.

HOWEVER, the main issue with this bug here still remains: the size of the cursor remains very very small. Kwin window decoration borders do not respect HiDPI settings for cursor size.
Comment 2 Jason A. Donenfeld 2016-09-13 02:35:55 UTC
Created attachment 101063 [details]
Animated gif showing the issue
Comment 3 Jason A. Donenfeld 2016-09-13 02:53:29 UTC
A workaround for this is changing it from "Resolution Independent" to an explicit size 48 in the Cursor Themes systemsettings module.

This isn't a super pretty solution, however.
Comment 4 Martin Flöser 2016-09-13 05:57:01 UTC
The general problem with cursors is the fallback strategy: if a cursor is missing it is looked up in the (system) fallback theme. This means if the cursor is missing in the theme you get the fallback. This can be fixed in two ways: fix the theme by providing all required symlinks or have the same theme set as the fallback theme. In that case our software selection works.
Comment 5 Jason A. Donenfeld 2016-09-13 11:42:42 UTC
Actually I fixed this initial problem of finding it in the theme (see comment #1). The issue, now, is that when "resolution dependent" is selected, the cursor's correct size is not selected on HiDPI displays.
Comment 6 David Edmundson 2018-02-17 22:50:39 UTC
*** Bug 390626 has been marked as a duplicate of this bug. ***
Comment 7 David Edmundson 2018-02-17 22:50:51 UTC
*** Bug 376245 has been marked as a duplicate of this bug. ***
Comment 8 Bernie Innocenti 2018-03-05 15:53:16 UTC
Still present on Plasma 5.12.2.
Comment 9 Ansem 2018-05-01 10:41:44 UTC
It happend to me too. but in my case happend in a HiDPI reescaled interface, pointer doesn't stay at same size on window decoration.

Resolution: 3840x2160
Interface reescaled: 1.5
Distro: Manjaro KDE (but I faced same issue in Kubuntu an OpenSUSE)
Plasma version: KDE 5.45.0 / Plasma 5.12.4 (also i faced same issue in older versions too)
Comment 10 kde.org 2021-11-06 21:14:12 UTC
This issue report is quite old. Can you please confirm, that it still persists with KDE 5.23? Is there something that can be done about it?
Comment 11 postix 2022-02-14 13:10:37 UTC
(In reply to kde.org from comment #10)
> This issue report is quite old. Can you please confirm, that it still
> persists with KDE 5.23? Is there something that can be done about it?
Comment 12 Bernie Innocenti 2022-02-15 03:18:00 UTC
I just tried this in Plasma Wayland 5.24:

1. Open System Settings / Appearance / Cursors
2. Change the cursor size (I changed it from 36 to 24)
3. Click apply
4. The cursor size does not change while the cursor is within the System Settings window
5. The cursor changes to the expected size when hovering over the window borders
6. Closing and re-opening System Settings does NOT change the cursor size in the window
7. XWayland clients behave exactly the same (the cursor size inside the window doesn't change, but gets smaller/larger in the borders)
Comment 13 Ansem 2022-02-15 09:02:10 UTC
As far I can remember, I think that this is because the system needs to reboot or restart the entire session but the problem is there is not a message or sticky message to inform the user that needs to reboot.
Comment 14 postix 2022-02-15 11:21:42 UTC
What's described in comment 12 sounds like a duplicate of 420859.

*** This bug has been marked as a duplicate of bug 420859 ***