aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-07-24 09:09:49 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-07-24 09:09:49 +1000
commit0db6f2ef58fe81375219f9cc2e650661f6bd02ce (patch)
tree8fdb447dc0d11faa04073189d58459bc84592113
parente94fd0e6eb0ff65a37ec91ecd349e5a7aab755bb (diff)
downloadsway-0db6f2ef58fe81375219f9cc2e650661f6bd02ce.tar.xz
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.
-rw-r--r--sway/input/cursor.c1
1 files changed, 1 insertions, 0 deletions
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;
}