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.
This commit is contained in:
Ashish SHUKLA 2022-02-07 20:32:28 +05:30
parent 91559fe480
commit 4df73585e7
No known key found for this signature in database
GPG key ID: C746CFA9E74FA4B0
3 changed files with 8 additions and 2 deletions

View file

@ -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;