diff options
author | Consolatis <40171-Consolatis@users.noreply.gitlab.freedesktop.org> | 2022-07-13 23:49:58 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-02-01 14:14:41 +0100 |
commit | 4097eb20f33a19560ade52bfca8ca99161e9598c (patch) | |
tree | b8c5c0dcef5556b0c60733ff5f3e4ebdeb576e5f /include | |
parent | 0f24d27e0b2d80cfa242b6158253af59ccee7120 (diff) |
xcursors: Alias existing cursor defaults to cursor-spec cursor names
wlr_xcursor_get_resize_name() returns cursor-spec [1] based names
but the default cursor icons shipped in include/xcursor/cursor_data.h
use traditional X cursor names instead.
Compositors that use wlr_xcursor_get_resize_name() to resolve an edge
to a cursor icon name may thus be unable to render appropriate cursor
icons for users that don't have a cursor-spec compliant cursor theme
installed on their system or have it installed in an unusual place.
This patch adds cursor-spec cursor icon name aliases.
[1] https://www.freedesktop.org/wiki/Specifications/cursor-spec/
Diffstat (limited to 'include')
-rw-r--r-- | include/xcursor/cursor_data.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/xcursor/cursor_data.h b/include/xcursor/cursor_data.h index ddd54d46..82627003 100644 --- a/include/xcursor/cursor_data.h +++ b/include/xcursor/cursor_data.h @@ -551,4 +551,19 @@ static const struct cursor_metadata { { "xterm", 9, 16, 4, 8, 2400 }, { "hand1", 13, 16, 12, 0, 2544 }, { "watch", 16, 16, 15, 9, 2752 }, + + /* https://www.freedesktop.org/wiki/Specifications/cursor-spec/ */ + { "sw-resize", 16, 16, 1, 14, 0 }, + { "se-resize", 16, 16, 14, 14, 256 }, + { "s-resize", 15, 16, 7, 14, 512 }, + { "all-scroll", 16, 16, 8, 8, 752 }, + { "default", 10, 16, 1, 1, 1008 }, + { "w-resize", 16, 15, 1, 7, 1168 }, + { "e-resize", 16, 15, 14, 7, 1408 }, + { "nw-resize", 16, 16, 1, 1, 1648 }, + { "ne-resize", 16, 16, 14, 1, 1904 }, + { "n-resize", 15, 16, 7, 1, 2160 }, + { "text", 9, 16, 4, 8, 2400 }, + { "pointer", 13, 16, 12, 0, 2544 }, + { "wait", 16, 16, 15, 9, 2752 }, }; |