diff options
author | William Wold <wm@wmww.sh> | 2018-09-17 01:20:45 -0700 |
---|---|---|
committer | William Wold <wm@wmww.sh> | 2018-09-17 01:20:45 -0700 |
commit | f48999dd2416fcdf1986519bd05e772b242a9b05 (patch) | |
tree | b640f8d6218fa1adf8488c6d8dadfc3f94161664 | |
parent | Merge pull request #2637 from RyanDwyer/fix-tabbed-workspace-shenanigans (diff) | |
download | sway-f48999dd2416fcdf1986519bd05e772b242a9b05.tar.gz sway-f48999dd2416fcdf1986519bd05e772b242a9b05.tar.zst sway-f48999dd2416fcdf1986519bd05e772b242a9b05.zip |
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); |