diff options
Diffstat (limited to 'sway/input')
-rw-r--r-- | sway/input/cursor.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 11a2de85..69660945 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c | |||
@@ -408,7 +408,9 @@ static void handle_touch_down(struct wl_listener *listener, void *data) { | |||
408 | event->touch_id, sx, sy); | 408 | event->touch_id, sx, sy); |
409 | } | 409 | } |
410 | 410 | ||
411 | seat_set_focus(seat, focused_node); | 411 | if (focused_node) { |
412 | seat_set_focus(seat, focused_node); | ||
413 | } | ||
412 | } | 414 | } |
413 | 415 | ||
414 | static void handle_touch_up(struct wl_listener *listener, void *data) { | 416 | static void handle_touch_up(struct wl_listener *listener, void *data) { |