From 5214fb1d7fd7aebf3889abaa05d62a4131a6d63f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 27 Jan 2025 16:46:54 +0100 Subject: Try fixing missing cursor texture on some broken systems --- src/Overlay.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/Overlay.cpp b/src/Overlay.cpp index 404aa27..ddb48a0 100644 --- a/src/Overlay.cpp +++ b/src/Overlay.cpp @@ -773,12 +773,14 @@ namespace gsr { cursor_size = 24; XcursorImage *cursor_image = nullptr; - for(const char *cursor_theme_test : {cursor_theme, "default"}) { - //for(unsigned int shape : {XC_left_ptr, XC_right_ptr}) { - cursor_image = XcursorShapeLoadImage(XC_left_ptr, cursor_theme_test, cursor_size); - if(cursor_image) - break; - //} + for(int cursor_size_test : {cursor_size, 24}) { + for(unsigned int shape : {XC_left_ptr, XC_arrow}) { + for(const char *cursor_theme_test : {cursor_theme, "default"}) { + cursor_image = XcursorShapeLoadImage(shape, cursor_theme_test, cursor_size_test); + if(cursor_image) + break; + } + } } if(!cursor_image) { -- cgit v1.2.3