mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-05-07 15:19:56 +09:00
Try fixing missing cursor texture on some broken systems
This commit is contained in:
@@ -773,12 +773,14 @@ namespace gsr {
|
|||||||
cursor_size = 24;
|
cursor_size = 24;
|
||||||
|
|
||||||
XcursorImage *cursor_image = nullptr;
|
XcursorImage *cursor_image = nullptr;
|
||||||
|
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"}) {
|
for(const char *cursor_theme_test : {cursor_theme, "default"}) {
|
||||||
//for(unsigned int shape : {XC_left_ptr, XC_right_ptr}) {
|
cursor_image = XcursorShapeLoadImage(shape, cursor_theme_test, cursor_size_test);
|
||||||
cursor_image = XcursorShapeLoadImage(XC_left_ptr, cursor_theme_test, cursor_size);
|
|
||||||
if(cursor_image)
|
if(cursor_image)
|
||||||
break;
|
break;
|
||||||
//}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!cursor_image) {
|
if(!cursor_image) {
|
||||||
|
|||||||
Reference in New Issue
Block a user