Don't transfer focus to NULL node on touch

Fixes #5185
This commit is contained in:
David96 2020-04-09 12:33:18 +02:00 committed by Simon Ser
parent 0efc28e2f5
commit 2b15cf453e
1 changed files with 3 additions and 1 deletions

View File

@ -408,8 +408,10 @@ static void handle_touch_down(struct wl_listener *listener, void *data) {
event->touch_id, sx, sy);
}
if (focused_node) {
seat_set_focus(seat, focused_node);
}
}
static void handle_touch_up(struct wl_listener *listener, void *data) {
struct sway_cursor *cursor = wl_container_of(listener, cursor, touch_up);