Consider cursor warp when switching workspaces

Fixes a regression introduced in
24a90e5d86.

consider_warp_to_focus has been renamed to seat_consider_warp_to_focus,
moved to seat.c and made public. It is now called when switching
workspaces via `workspace <ws>`.
This commit is contained in:
Ryan Dwyer 2018-10-19 07:57:50 +10:00
parent 30dbb8eba0
commit a2fdac2c4b
4 changed files with 27 additions and 24 deletions

View file

@ -203,4 +203,6 @@ void seat_end_mouse_operation(struct sway_seat *seat);
void seat_pointer_notify_button(struct sway_seat *seat, uint32_t time_msec,
uint32_t button, enum wlr_button_state state);
void seat_consider_warp_to_focus(struct sway_seat *seat);
#endif