forked from external/yambar
bar/wayland: reload cursor theme: remember current pointer name
This allows us to avoid reloading the same pointer image again and again.
This commit is contained in:
parent
f04b1e806c
commit
d929c12ecb
1 changed files with 2 additions and 0 deletions
|
@ -1189,6 +1189,8 @@ set_cursor(struct bar *_bar, const char *cursor)
|
|||
if (seat->pointer.xcursor != NULL && strcmp(seat->pointer.xcursor, cursor) == 0)
|
||||
return;
|
||||
|
||||
seat->pointer.xcursor = cursor;
|
||||
|
||||
seat->pointer.cursor = wl_cursor_theme_get_cursor(
|
||||
seat->pointer.theme, cursor);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue