diff options
Diffstat (limited to 'sway/commands/layout.c')
-rw-r--r-- | sway/commands/layout.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sway/commands/layout.c b/sway/commands/layout.c index 6b44b001..a009e38f 100644 --- a/sway/commands/layout.c +++ b/sway/commands/layout.c | |||
@@ -12,19 +12,15 @@ struct cmd_results *cmd_layout(int argc, char **argv) { | |||
12 | } | 12 | } |
13 | struct sway_container *parent = config->handler_context.current_container; | 13 | struct sway_container *parent = config->handler_context.current_container; |
14 | 14 | ||
15 | // TODO: floating | 15 | if (container_is_floating(parent)) { |
16 | /* | 16 | return cmd_results_new(CMD_FAILURE, "layout", |
17 | if (parent->is_floating) { | 17 | "Unable to change layout of floating windows"); |
18 | return cmd_results_new(CMD_FAILURE, "layout", "Unable to change layout of floating windows"); | ||
19 | } | 18 | } |
20 | */ | ||
21 | 19 | ||
22 | while (parent->type == C_VIEW) { | 20 | while (parent->type == C_VIEW) { |
23 | parent = parent->parent; | 21 | parent = parent->parent; |
24 | } | 22 | } |
25 | 23 | ||
26 | // TODO: stacks and tabs | ||
27 | |||
28 | if (strcasecmp(argv[0], "default") == 0) { | 24 | if (strcasecmp(argv[0], "default") == 0) { |
29 | parent->layout = parent->prev_layout; | 25 | parent->layout = parent->prev_layout; |
30 | if (parent->layout == L_NONE) { | 26 | if (parent->layout == L_NONE) { |