From f48999dd2416fcdf1986519bd05e772b242a9b05 Mon Sep 17 00:00:00 2001 From: William Wold Date: Mon, 17 Sep 2018 01:20:45 -0700 Subject: [PATCH] Fix crash moving out of tab container --- sway/commands/move.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/commands/move.c b/sway/commands/move.c index 42b305d1..849a18ad 100644 --- a/sway/commands/move.c +++ b/sway/commands/move.c @@ -289,7 +289,7 @@ static void move_out_of_tabs_stacks(struct sway_container *container, } wlr_log(WLR_DEBUG, "Moving out of tab/stack into a split"); - if (container->parent) { + if (current->parent) { struct sway_container *new_parent = container_split(current->parent, layout); container_insert_child(new_parent, container, offs < 0 ? 0 : 1);