input/tablet: handle focusing NULL surface

Additionally, rename the function responsible for switching focus to
match its behavior better.
This commit is contained in:
Kirill Primak 2023-01-09 18:28:59 +03:00
parent 3061999ec5
commit c09130171e
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