Merge pull request #2649 from wmww/fix-move-crash

Fix crash moving out of tab container
master
emersion 6 years ago committed by GitHub
commit 5abf832202
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"); wlr_log(WLR_DEBUG, "Moving out of tab/stack into a split");
if (container->parent) { if (current->parent) {
struct sway_container *new_parent = struct sway_container *new_parent =
container_split(current->parent, layout); container_split(current->parent, layout);
container_insert_child(new_parent, container, offs < 0 ? 0 : 1); container_insert_child(new_parent, container, offs < 0 ? 0 : 1);

Loading…
Cancel
Save