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 | Merge pull request #2341 from RedSoxFan/fix-2339 (diff) | |
download | sway-0db6f2ef58fe81375219f9cc2e650661f6bd02ce.tar.gz sway-0db6f2ef58fe81375219f9cc2e650661f6bd02ce.tar.zst sway-0db6f2ef58fe81375219f9cc2e650661f6bd02ce.zip |
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, | |||
726 | 726 | ||
727 | wlr_cursor_set_surface(cursor->cursor, event->surface, event->hotspot_x, | 727 | wlr_cursor_set_surface(cursor->cursor, event->surface, event->hotspot_x, |
728 | event->hotspot_y); | 728 | event->hotspot_y); |
729 | cursor->image = NULL; | ||
729 | cursor->image_client = focused_client; | 730 | cursor->image_client = focused_client; |
730 | } | 731 | } |
731 | 732 | ||