diff options
author | David Robillard <d@drobilla.net> | 2023-05-27 12:54:38 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-05-27 12:55:13 -0400 |
commit | ef3894166bda794a7ed3baad745432b5ee5d6789 (patch) | |
tree | 3bee14c795eec524e8ec3915b3886a1bc0a8697a | |
parent | 580584e896abfa9324e58c0fad39476cb4cc077c (diff) | |
download | pugl-ef3894166bda794a7ed3baad745432b5ee5d6789.tar.gz pugl-ef3894166bda794a7ed3baad745432b5ee5d6789.tar.bz2 pugl-ef3894166bda794a7ed3baad745432b5ee5d6789.zip |
X11: Fix cursors on systems where XcursorGetTheme() doesn't work
-rw-r--r-- | src/x11.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |