commit d06c1ac1e96c3a5716b6dd8e5ee443674df36020 parent 1be66c98f2c06add500bdb9d4b98b6183ab8141f Author: Ronan Pigott <rpigott@berkeley.edu> Date: Wed, 21 Oct 2020 09:42:40 -0700 commands/move: fix crash when moving sphsc child Diffstat:
| M | sway/commands/move.c | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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) {