diff options
author | emersion <contact@emersion.fr> | 2018-09-17 10:52:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-17 10:52:14 +0200 |
commit | 5abf8322021efb991dbc7bbca584f20a57cffb6c (patch) | |
tree | b640f8d6218fa1adf8488c6d8dadfc3f94161664 | |
parent | Merge pull request #2637 from RyanDwyer/fix-tabbed-workspace-shenanigans (diff) | |
parent | Fix crash moving out of tab container (diff) | |
download | sway-5abf8322021efb991dbc7bbca584f20a57cffb6c.tar.gz sway-5abf8322021efb991dbc7bbca584f20a57cffb6c.tar.zst sway-5abf8322021efb991dbc7bbca584f20a57cffb6c.zip |
Merge pull request #2649 from wmww/fix-move-crash
Fix crash moving out of tab container
-rw-r--r-- | sway/commands/move.c | 2 |
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, | |||
289 | } | 289 | } |
290 | 290 | ||
291 | wlr_log(WLR_DEBUG, "Moving out of tab/stack into a split"); | 291 | wlr_log(WLR_DEBUG, "Moving out of tab/stack into a split"); |
292 | if (container->parent) { | 292 | if (current->parent) { |
293 | struct sway_container *new_parent = | 293 | struct sway_container *new_parent = |
294 | container_split(current->parent, layout); | 294 | container_split(current->parent, layout); |
295 | container_insert_child(new_parent, container, offs < 0 ? 0 : 1); | 295 | container_insert_child(new_parent, container, offs < 0 ? 0 : 1); |