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,7 +408,9 @@ static void handle_touch_down(struct wl_listener *listener, void *data) {
event->touch_id, sx, sy);
}
seat_set_focus(seat, focused_node);
if (focused_node) {
seat_set_focus(seat, focused_node);
}
}
static void handle_touch_up(struct wl_listener *listener, void *data) {