mirror of
https://github.com/NickHu/sway
synced 2024-12-25 21:58:16 +01:00
Use wlr_cursor_set_xcursor()
wlr_xcursor_manager_set_cursor_image() is deprecated. References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4170
This commit is contained in:
parent
876687000d
commit
6f1a3b6652
1 changed files with 1 additions and 2 deletions
|
@ -1070,8 +1070,7 @@ void cursor_set_image(struct sway_cursor *cursor, const char *image,
|
|||
if (!image) {
|
||||
wlr_cursor_set_image(cursor->cursor, NULL, 0, 0, 0, 0, 0, 0);
|
||||
} else if (!current_image || strcmp(current_image, image) != 0) {
|
||||
wlr_xcursor_manager_set_cursor_image(cursor->xcursor_manager, image,
|
||||
cursor->cursor);
|
||||
wlr_cursor_set_xcursor(cursor->cursor, cursor->xcursor_manager, image);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue