From a7898637de43de1757f72393ef1caedf568f45e4 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Fri, 29 Apr 2022 18:22:27 -0400 Subject: Avoid inspecting a NULL view in seat_set_focus Fixes #6968 --- sway/input/seat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/input/seat.c b/sway/input/seat.c index fa83050b..11c78154 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -1184,7 +1184,7 @@ void seat_set_focus(struct sway_seat *seat, struct sway_node *node) { } // Deny setting focus when an input grab or lockscreen is active - if (container && !seat_is_input_allowed(seat, container->view->surface)) { + if (container && container->view && !seat_is_input_allowed(seat, container->view->surface)) { return; } -- cgit v1.2.3