aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/x11.c')
-rw-r--r--src/x11.c5
1 files 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