From d929c12ecb6b0d1236d4d1644e56e7deba435873 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 9 Jul 2020 19:52:10 +0200 Subject: [PATCH] bar/wayland: reload cursor theme: remember current pointer name This allows us to avoid reloading the same pointer image again and again. --- bar/wayland.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bar/wayland.c b/bar/wayland.c index af2e7f4..b4291da 100644 --- a/bar/wayland.c +++ b/bar/wayland.c @@ -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);