mirror of
https://github.com/swaywm/sway.git
synced 2026-04-02 07:15:50 -04: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
|
|
@ -1231,4 +1231,8 @@ void seat_consider_warp_to_focus(struct sway_seat *seat) {
|
|||
} else {
|
||||
cursor_warp_to_workspace(seat->cursor, focus->sway_workspace);
|
||||
}
|
||||
if (seat->cursor->hidden){
|
||||
cursor_unhide(seat->cursor);
|
||||
wl_event_source_timer_update(seat->cursor->hide_source, cursor_get_timeout(seat->cursor));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue