aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/commands/move.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/commands/move.c b/sway/commands/move.c
index 959e5bfb..876a5616 100644
--- a/sway/commands/move.c
+++ b/sway/commands/move.c
@@ -537,7 +537,8 @@ static struct cmd_results *cmd_move_container(bool no_auto_back_and_forth,
537 struct sway_node *focus = seat_get_focus(seat); 537 struct sway_node *focus = seat_get_focus(seat);
538 538
539 // move container 539 // move container
540 if (container->scratchpad) { 540 if (container_is_scratchpad_hidden_or_child(container)) {
541 container_detach(container);
541 root_scratchpad_show(container); 542 root_scratchpad_show(container);
542 } 543 }
543 switch (destination->type) { 544 switch (destination->type) {