From 4df73585e79485280fda2e60c18bbac36eaee491 Mon Sep 17 00:00:00 2001 From: Ashish SHUKLA Date: Mon, 7 Feb 2022 20:32:28 +0530 Subject: 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. --- render.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'render.c') diff --git a/render.c b/render.c index 65c39bf8..d873aa79 100644 --- a/render.c +++ b/render.c @@ -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; -- cgit v1.3