aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
Diffstat (limited to 'sway')
-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) {
}
}
- bool is_fullscreen = false;
- for (struct sway_container *curr = container; curr; curr = curr->pending.parent) {
- if (curr->pending.fullscreen_mode != FULLSCREEN_NONE) {
- container = curr;
- is_fullscreen = true;
- break;
- }
- }
-
+ bool is_fullscreen = container->pending.fullscreen_mode != FULLSCREEN_NONE;
bool global = false;
bool enable = !is_fullscreen;