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:
Daniel Eklöf 2020-07-09 19:52:10 +02:00
parent f04b1e806c
commit d929c12ecb
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1189,6 +1189,8 @@ set_cursor(struct bar *_bar, const char *cursor)
if (seat->pointer.xcursor != NULL && strcmp(seat->pointer.xcursor, cursor) == 0) if (seat->pointer.xcursor != NULL && strcmp(seat->pointer.xcursor, cursor) == 0)
return; return;
seat->pointer.xcursor = cursor;
seat->pointer.cursor = wl_cursor_theme_get_cursor( seat->pointer.cursor = wl_cursor_theme_get_cursor(
seat->pointer.theme, cursor); seat->pointer.theme, cursor);