wayland/cursor
Jin Liu eada8e1379 cursor: scale cursors to the requested size on env var "XCURSOR_RESIZED=true"
This is to sync a recent change from libXcursor:
https://gitlab.freedesktop.org/xorg/lib/libxcursor/-/merge_requests/22

The motivation is to unify the cursor scaling behavior in various X11
and Wayland apps / toolkits. Currently, when the cursor theme doesn't
have the requested size, not all clients scale the cursor by
themselves, resulting in inconsistent cursor size across clients.

This problem is especially evident in Wayland, as a HiDPI-enabled
clients will request cursors in the size:
    "XCURSOR_SIZE * display scale"
which greatly increases the chance that the cursor theme doesn't
provide the requested size.

Tested with Weston. With an updated libwayland-cursor.so, and env
"XCURSOR_RESIZED=true", Weston renders the cursor scaled to any
XCURSOR_SIZE.

Signed-off-by: Jin Liu <m.liu.jin@gmail.com>
2024-11-04 11:28:58 +08:00
..
convert_font.c src: Finish assert() clean-up 2024-08-09 20:38:52 +00:00
cursor-data.h cursor: add aliases for cursor name spec 2024-01-19 14:08:16 +00:00
cursor.pcf cursor: add cursor.pcf and extraction program 2012-09-10 21:05:14 -04:00
meson.build meson: override dependencies to ease use as subproject 2021-12-08 00:27:58 +01:00
os-compatibility.c cursor: memfd_create: try MFD_NOEXEC_SEAL 2024-04-21 19:17:46 +02:00
os-compatibility.h cursor/os-compatibility: move resizing into a separate function 2020-02-23 20:42:54 +00:00
wayland-cursor.c cursor: add check to ensure wl_shm_create_pool succeeded 2024-10-18 16:49:45 +08:00
wayland-cursor.h cursor: Properly document wl_cursor_image and wl_cursor 2020-06-05 11:05:20 +00:00
xcursor.c cursor: scale cursors to the requested size on env var "XCURSOR_RESIZED=true" 2024-11-04 11:28:58 +08:00
xcursor.h cursor: rename functions to snake case 2022-05-23 08:59:05 +00:00