aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-09-17 10:52:14 +0200
committerGitHub <noreply@github.com>2018-09-17 10:52:14 +0200
commit5abf8322021efb991dbc7bbca584f20a57cffb6c (patch)
treeb640f8d6218fa1adf8488c6d8dadfc3f94161664 /sway/commands
parent456b91600d73edb3187c170eb6720b1c3212351c (diff)
parentf48999dd2416fcdf1986519bd05e772b242a9b05 (diff)
Merge pull request #2649 from wmww/fix-move-crash
Fix crash moving out of tab container
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/move.c2
1 files changed, 1 insertions, 1 deletions
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);