From d06c1ac1e96c3a5716b6dd8e5ee443674df36020 Mon Sep 17 00:00:00 2001 From: Ronan Pigott Date: Wed, 21 Oct 2020 09:42:40 -0700 Subject: [PATCH] commands/move: fix crash when moving sphsc child --- sway/commands/move.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, struct sway_node *focus = seat_get_focus(seat); // move container - if (container->scratchpad) { + if (container_is_scratchpad_hidden_or_child(container)) { + container_detach(container); root_scratchpad_show(container); } switch (destination->type) {