aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/tree/view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index 32df19e5..49e6f599 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -601,7 +601,7 @@ static bool should_focus(struct sway_view *view) {
601 } 601 }
602 602
603 // View opened "under" fullscreen view should not be given focus. 603 // View opened "under" fullscreen view should not be given focus.
604 if (root->fullscreen_global || map_ws->fullscreen) { 604 if (root->fullscreen_global || !map_ws || map_ws->fullscreen) {
605 return false; 605 return false;
606 } 606 }
607 607