From ef3894166bda794a7ed3baad745432b5ee5d6789 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 27 May 2023 12:54:38 -0400 Subject: X11: Fix cursors on systems where XcursorGetTheme() doesn't work --- src/x11.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/x11.c b/src/x11.c index 4377f77..b389932 100644 --- a/src/x11.c +++ b/src/x11.c @@ -470,9 +470,10 @@ defineCursorName(PuglView* const view, const char* const name) Display* const display = world->impl->display; // Load cursor theme - char* const theme = XcursorGetTheme(display); + const char* theme = XcursorGetTheme(display); if (!theme) { - return PUGL_FAILURE; + // If that fails (like on Linux Mint 21.1), "default" usually works + theme = "default"; } // Get the default size and cursor image from it -- cgit v1.2.1