diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2022-04-29 18:22:27 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2022-04-29 18:22:27 -0400 |
| commit | d5ebc462d3b9bdebf89717758571f0b8cbe27fad (patch) | |
| tree | b427eea908239e3499d37774b821d58759710e9e | |
| parent | add6aaca410618f82d388e8a58145c9841775efc (diff) | |
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) { } // 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; } |
