aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
Diffstat (limited to 'sway')
-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) {
}
// View opened "under" fullscreen view should not be given focus.
- if (root->fullscreen_global || map_ws->fullscreen) {
+ if (root->fullscreen_global || !map_ws || map_ws->fullscreen) {
return false;
}