mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
Merge pull request #1264 from emersion/examples-unknown-cursor
Fix unknown cursor in layer-shell example
This commit is contained in:
commit
e47b8cd629
1 changed files with 6 additions and 0 deletions
|
@ -596,10 +596,16 @@ int main(int argc, char **argv) {
|
|||
assert(cursor_theme);
|
||||
struct wl_cursor *cursor =
|
||||
wl_cursor_theme_get_cursor(cursor_theme, "crosshair");
|
||||
if (cursor == NULL) {
|
||||
cursor = wl_cursor_theme_get_cursor(cursor_theme, "left_ptr");
|
||||
}
|
||||
assert(cursor);
|
||||
cursor_image = cursor->images[0];
|
||||
|
||||
cursor = wl_cursor_theme_get_cursor(cursor_theme, "tcross");
|
||||
if (cursor == NULL) {
|
||||
cursor = wl_cursor_theme_get_cursor(cursor_theme, "left_ptr");
|
||||
}
|
||||
assert(cursor);
|
||||
popup_cursor_image = cursor->images[0];
|
||||
|
||||
|
|
Loading…
Reference in a new issue