diff options
Diffstat (limited to 'sway/commands/move.c')
-rw-r--r-- | sway/commands/move.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/move.c b/sway/commands/move.c index 33d1ee4a..e788d32f 100644 --- a/sway/commands/move.c +++ b/sway/commands/move.c | |||
@@ -449,7 +449,7 @@ static struct cmd_results *move_to_scratchpad(struct sway_container *con) { | |||
449 | // If the container is in a floating split container, | 449 | // If the container is in a floating split container, |
450 | // operate on the split container instead of the child. | 450 | // operate on the split container instead of the child. |
451 | if (container_is_floating_or_child(con)) { | 451 | if (container_is_floating_or_child(con)) { |
452 | while (con->parent->layout != L_FLOATING) { | 452 | while (con->parent->type != C_WORKSPACE) { |
453 | con = con->parent; | 453 | con = con->parent; |
454 | } | 454 | } |
455 | } | 455 | } |