commands/move: fix crash when moving sphsc child

This commit is contained in:
Ronan Pigott 2020-10-21 09:42:40 -07:00 committed by Tudor Brindus
parent 1be66c98f2
commit d06c1ac1e9

View file

@ -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); struct sway_node *focus = seat_get_focus(seat);
// move container // move container
if (container->scratchpad) { if (container_is_scratchpad_hidden_or_child(container)) {
container_detach(container);
root_scratchpad_show(container); root_scratchpad_show(container);
} }
switch (destination->type) { switch (destination->type) {