summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop-shell/shell.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
index b3b2b552..f85a2695 100644
--- a/desktop-shell/shell.c
+++ b/desktop-shell/shell.c
@@ -4229,6 +4229,8 @@ touch_to_activate_binding(struct weston_seat *seat, uint32_t time, void *data)
{
if (seat->touch->grab != &seat->touch->default_grab)
return;
+ if (seat->touch->focus == NULL)
+ return;
activate_binding(seat, data, seat->touch->focus->surface);
}