summaryrefslogtreecommitdiffstats
path: root/sway/commands/layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/layout.c')
-rw-r--r--sway/commands/layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/layout.c b/sway/commands/layout.c
index 570cd207..40ebd590 100644
--- a/sway/commands/layout.c
+++ b/sway/commands/layout.c
@@ -16,7 +16,7 @@ struct cmd_results *cmd_layout(int argc, char **argv) {
16 if ((error = checkarg(argc, "layout", EXPECTED_MORE_THAN, 0))) { 16 if ((error = checkarg(argc, "layout", EXPECTED_MORE_THAN, 0))) {
17 return error; 17 return error;
18 } 18 }
19 swayc_t *parent = get_focused_container(&root_container); 19 swayc_t *parent = current_container;
20 if (parent->is_floating) { 20 if (parent->is_floating) {
21 return cmd_results_new(CMD_FAILURE, "layout", "Unable to change layout of floating windows"); 21 return cmd_results_new(CMD_FAILURE, "layout", "Unable to change layout of floating windows");
22 } 22 }