summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConsolatis <Consolatis@noreply.invalid>2023-02-01 14:35:15 +0100
committerDaniel Stone <daniels@collabora.com>2024-01-19 14:08:16 +0000
commit6daa1b8713f0fa569eb9f5c101b61c4ef1500775 (patch)
tree2e6c4713fb1bf5c2c3633d58638ef00e5ab8a487
parent0e139cfbc710156bc4b4b3c254c7b2ff2f10ff34 (diff)
cursor: add aliases for cursor name spec
The cursor name spec [1] describes how cursors should be named, and is widely used. Add aliases so that users can pass these names to libwayland-cursor without having to add fallbacks for X11 cursor names. [1]: https://www.freedesktop.org/wiki/Specifications/cursor-spec/ Signed-off-by: Simon Ser <contact@emersion.fr>
-rw-r--r--cursor/cursor-data.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/cursor/cursor-data.h b/cursor/cursor-data.h
index dd7a80a..2ee2f8a 100644
--- a/cursor/cursor-data.h
+++ b/cursor/cursor-data.h
@@ -551,4 +551,19 @@ static 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 },
};