diff options
author | Daniel De Graaf <code@danieldg.net> | 2022-04-29 18:22:27 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-04-30 00:36:44 +0200 |
commit | a7898637de43de1757f72393ef1caedf568f45e4 (patch) | |
tree | b427eea908239e3499d37774b821d58759710e9e | |
parent | Implement ext-session-lock-v1 (diff) | |
download | sway-a7898637de43de1757f72393ef1caedf568f45e4.tar.gz sway-a7898637de43de1757f72393ef1caedf568f45e4.tar.zst sway-a7898637de43de1757f72393ef1caedf568f45e4.zip |
Avoid inspecting a NULL view in seat_set_focus
Fixes #6968
-rw-r--r-- | sway/input/seat.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
1184 | } | 1184 | } |
1185 | 1185 | ||
1186 | // Deny setting focus when an input grab or lockscreen is active | 1186 | // Deny setting focus when an input grab or lockscreen is active |
1187 | if (container && !seat_is_input_allowed(seat, container->view->surface)) { | 1187 | if (container && container->view && !seat_is_input_allowed(seat, container->view->surface)) { |
1188 | return; | 1188 | return; |
1189 | } | 1189 | } |
1190 | 1190 | ||