aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/fullscreen.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/fullscreen.c')
-rw-r--r--sway/commands/fullscreen.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sway/commands/fullscreen.c b/sway/commands/fullscreen.c
index a5d30d0e..bc59201c 100644
--- a/sway/commands/fullscreen.c
+++ b/sway/commands/fullscreen.c
@@ -33,15 +33,7 @@ struct cmd_results *cmd_fullscreen(int argc, char **argv) {
33 } 33 }
34 } 34 }
35 35
36 bool is_fullscreen = false; 36 bool is_fullscreen = container->pending.fullscreen_mode != FULLSCREEN_NONE;
37 for (struct sway_container *curr = container; curr; curr = curr->pending.parent) {
38 if (curr->pending.fullscreen_mode != FULLSCREEN_NONE) {
39 container = curr;
40 is_fullscreen = true;
41 break;
42 }
43 }
44
45 bool global = false; 37 bool global = false;
46 bool enable = !is_fullscreen; 38 bool enable = !is_fullscreen;
47 39