diff options
| author | Ashish SHUKLA <ashish.is@lostca.se> | 2022-02-07 15:02:28 +0000 |
|---|---|---|
| committer | Ashish SHUKLA <ashish.is@lostca.se> | 2022-02-07 16:45:47 +0000 |
| commit | 4df73585e79485280fda2e60c18bbac36eaee491 (patch) | |
| tree | 3aeaba4d858893627f3379cc3f84435561178bfe /render.c | |
| parent | pgo: add stub for render_xcursor_is_valid (diff) | |
Specify a fallback mouse cursor
`text' cursor is not available in lots of cursor themes, but `xterm'
is, so specify `xterm' as a fallback cursor name.
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -4017,8 +4017,12 @@ render_xcursor_set(struct seat *seat, struct terminal *term, const char *xcursor seat->pointer.theme, xcursor); if (seat->pointer.cursor == NULL) { - LOG_ERR("failed to load xcursor pointer '%s'", xcursor); - return false; + seat->pointer.cursor = wl_cursor_theme_get_cursor( + seat->pointer.theme, XCURSOR_TEXT_FALLBACK ); + if (seat->pointer.cursor == NULL) { + LOG_ERR("failed to load xcursor pointer '%s', and fallback '%s'", xcursor, XCURSOR_TEXT_FALLBACK); + return false; + } } } else seat->pointer.cursor = NULL; |
