aboutsummaryrefslogtreecommitdiff
path: root/wayland.c
diff options
context:
space:
mode:
Diffstat (limited to 'wayland.c')
-rw-r--r--wayland.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/wayland.c b/wayland.c
index d558c489..7fcb01c1 100644
--- a/wayland.c
+++ b/wayland.c
@@ -345,6 +345,12 @@ seat_handle_capabilities(void *data, struct wl_seat *wl_seat,
if (seat->pointer.theme != NULL)
wl_cursor_theme_destroy(seat->pointer.theme);
+ if (seat->wl_touch != NULL &&
+ seat->touch.state == TOUCH_STATE_INHIBITED)
+ {
+ seat->touch.state = TOUCH_STATE_IDLE;
+ }
+
seat->wl_pointer = NULL;
seat->pointer.surface.surf = NULL;
seat->pointer.theme = NULL;