Avoid inspecting a NULL view in seat_set_focus

Fixes #6968
This commit is contained in:
Daniel De Graaf 2022-04-29 18:22:27 -04:00 committed by Simon Ser
parent 519038a7e9
commit a7898637de

View File

@ -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;
}