chrisaw
(Chris Williams)
January 27, 2024, 8:05pm
2
On Fedora, glfw isn’t built with wayland support. Building it from git with wayland enabled, I see the opposite problem: the cursor is tiny, except for the titlebar provided by libdecor which has the correct size.
I see similar behavior in weston, so this is probably a glfw bug:
opened 08:06PM - 18 Dec 23 UTC
bug
verified
Wayland
libdecor's decorations seem to properly keep cursor size as with the rest of com… positor. The glfw viewport however seems to pick up cursor size from XCURSOR_SIZE environment variable. However, when this environment variable is missing it seems to set it to an odd size instead of directly requesting size from the compositor.
I'm using glfw-wayland 3.3.9 from Arch Linux repos, GNOME Wayland session.
Video demonstration of the issue:
[Screencast from 2023-12-18 21-46-03.webm](https://github.com/glfw/glfw/assets/68742864/ee5ce45a-46cc-4a9a-a334-2d9ffd844880)
#1352 mentions that this variable is set by the compositor, however, this is false (or at least not the case anymore). Instead, wayland compositors rely on a completely different way to obtain cursor size and theme (in case of GNOME, it's saved in a dconf property)
The primary use of XCURSOR_THEME and XCURSOR_SIZE is in Xorg.
1 Like