From 8dbf67296b207b4cc504b0efb773bc0070849688 Mon Sep 17 00:00:00 2001 From: somdoron Date: Wed, 24 Oct 2018 13:26:51 +0300 Subject: [PATCH] Fix sway crash on new keyboard --- sway/input/seat.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sway/input/seat.c b/sway/input/seat.c index 89d841bbb..16d20be74 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -186,7 +186,10 @@ static void handle_seat_node_destroy(struct wl_listener *listener, void *data) { } else { // Setting focus_inactive seat_set_raw_focus(seat, next_focus); - seat_set_raw_focus(seat, focus); + + if (focus) { + seat_set_raw_focus(seat, focus); + } } }