aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-01-27 16:46:54 +0100
committerdec05eba <dec05eba@protonmail.com>2025-01-27 16:46:54 +0100
commit5214fb1d7fd7aebf3889abaa05d62a4131a6d63f (patch)
tree7ad276d8fa4b07f8101f8e3bdf41787325912934 /src
parent9aebe81ec4c248b96f0023d80a08b684a40508a0 (diff)
Try fixing missing cursor texture on some broken systems
Diffstat (limited to 'src')
-rw-r--r--src/Overlay.cpp14
1 files changed, 8 insertions, 6 deletions
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) {