input/tablet: handle focusing NULL surface

Additionally, rename the function responsible for switching focus to
match its behavior better.

(cherry picked from commit 53c9a4a643)
This commit is contained in:
Kirill Primak 2023-01-09 18:28:59 +03:00 committed by Simon Ser
parent 908d7db441
commit 41e473f8c0
3 changed files with 9 additions and 13 deletions

View file

@ -63,7 +63,7 @@ void sway_configure_tablet_pad(struct sway_tablet_pad *tablet_pad);
void sway_tablet_pad_destroy(struct sway_tablet_pad *tablet_pad);
void sway_tablet_pad_notify_enter(struct sway_tablet_pad *tablet_pad,
void sway_tablet_pad_set_focus(struct sway_tablet_pad *tablet_pad,
struct wlr_surface *surface);
#endif