From 0db6f2ef58fe81375219f9cc2e650661f6bd02ce Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Tue, 24 Jul 2018 09:09:49 +1000 Subject: Fix some cases where the cursor doesn't update cursor_set_image only uploads the named image if it doesn't match the previous named image. This means when setting the cursor image to a surface as given by a client, we have to clear the currently stored image. --- sway/input/cursor.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sway/input/cursor.c') diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 771ad01d..65d04cac 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c @@ -726,6 +726,7 @@ static void handle_request_set_cursor(struct wl_listener *listener, wlr_cursor_set_surface(cursor->cursor, event->surface, event->hotspot_x, event->hotspot_y); + cursor->image = NULL; cursor->image_client = focused_client; } -- cgit v1.2.3-54-g00ecf