mirror of
https://github.com/swaywm/sway.git
synced 2025-11-09 13:29:49 -05:00
seat: unhide the cursor if it is warped to focus
Unhide the cursor if container warping is enabled. Also set the image_surface to NULL during view_unmap, otherwise the cursor will try to access the surface which is currently being unmapped.
This commit is contained in:
parent
0b18560952
commit
cc858e605a
2 changed files with 5 additions and 0 deletions
|
|
@ -654,6 +654,7 @@ void view_unmap(struct sway_view *view) {
|
|||
|
||||
struct sway_seat *seat;
|
||||
wl_list_for_each(seat, &server.input->seats, link) {
|
||||
seat->cursor->image_surface = NULL;
|
||||
seat_consider_warp_to_focus(seat);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue