diff options
Diffstat (limited to 'sway/commands/floating.c')
-rw-r--r-- | sway/commands/floating.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/floating.c b/sway/commands/floating.c index c9467ef0..beafd9fb 100644 --- a/sway/commands/floating.c +++ b/sway/commands/floating.c | |||
@@ -33,7 +33,7 @@ struct cmd_results *cmd_floating(int argc, char **argv) { | |||
33 | // If the container is in a floating split container, | 33 | // If the container is in a floating split container, |
34 | // operate on the split container instead of the child. | 34 | // operate on the split container instead of the child. |
35 | if (container_is_floating_or_child(container)) { | 35 | if (container_is_floating_or_child(container)) { |
36 | while (container->parent->layout != L_FLOATING) { | 36 | while (container->parent->type != C_WORKSPACE) { |
37 | container = container->parent; | 37 | container = container->parent; |
38 | } | 38 | } |
39 | } | 39 | } |