mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 16:06:37 +01:00
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.
This commit is contained in:
parent
e94fd0e6eb
commit
0db6f2ef58
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue