Skip to content

Commit 0ef3a81

Browse files
committed
cursor-sprite-xcursor: Use standard cursor names
The cursor name for META_CURSOR_POINTER was "hand" for both the primary and legacy name lookups. Many modern cursor themes (e.g. Bibata, Adwaita, Google Dot) don't provide a cursor named "hand", causing XcursorLibraryLoadCursor to fail. This made the cursor disappear or Cinnamon crash when hovering URL links in notifications. Use "pointer" (the CSS3 cursor spec name) as the primary name and "hand2" (the traditional X11 cursor) as the legacy fallback. Both are universally available across cursor themes. Fixes #801 The previous commit actually fixes the crash. This commit prevents it from happening by using a better cursor name.
1 parent 82cba78 commit 0ef3a81

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/backends/meta-cursor-sprite-xcursor.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ meta_cursor_get_name (MetaCursor cursor)
5555
case META_CURSOR_HELP:
5656
return "question_arrow";
5757
case META_CURSOR_POINTER:
58-
return "hand";
58+
return "pointer";
5959
case META_CURSOR_PROGRESS:
6060
return "left_ptr_watch";
6161
case META_CURSOR_WAIT:
@@ -141,7 +141,7 @@ meta_cursor_get_legacy_name (MetaCursor cursor)
141141
case META_CURSOR_HELP:
142142
return "question_arrow";
143143
case META_CURSOR_POINTER:
144-
return "hand";
144+
return "hand2";
145145
case META_CURSOR_PROGRESS:
146146
return "left_ptr_watch";
147147
case META_CURSOR_WAIT:

0 commit comments

Comments
 (0)