diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-24 09:09:49 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-24 09:09:49 +1000 |
commit | 0db6f2ef58fe81375219f9cc2e650661f6bd02ce (patch) | |
tree | 8fdb447dc0d11faa04073189d58459bc84592113 | |
parent | e94fd0e6eb0ff65a37ec91ecd349e5a7aab755bb (diff) | |
download | sway-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.c | 1 |
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; } |