diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-08-07 23:04:21 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-08-07 23:04:21 +1000 |
commit | 5ac6f2f4290e609897faa322997fc7516e7dfb63 (patch) | |
tree | 18aed7720e1b6f9402a87b9bec466fa5d4fc88dc | |
parent | Merge pull request #2430 from ianyfan/socketpath-leaks (diff) | |
download | sway-5ac6f2f4290e609897faa322997fc7516e7dfb63.tar.gz sway-5ac6f2f4290e609897faa322997fc7516e7dfb63.tar.zst sway-5ac6f2f4290e609897faa322997fc7516e7dfb63.zip |
Fix crash when running `move container to workspace back_and_forth`
The back_and_forth condition is intended to be handled in the else-if
block, but this was never reached because it remained in the first
block's conditions.
-rw-r--r-- | sway/commands/move.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sway/commands/move.c b/sway/commands/move.c index bb4a7124..95dcb088 100644 --- a/sway/commands/move.c +++ b/sway/commands/move.c | |||
@@ -105,7 +105,6 @@ static struct cmd_results *cmd_move_container(struct sway_container *current, | |||
105 | strcasecmp(argv[2], "prev") == 0 || | 105 | strcasecmp(argv[2], "prev") == 0 || |
106 | strcasecmp(argv[2], "next_on_output") == 0 || | 106 | strcasecmp(argv[2], "next_on_output") == 0 || |
107 | strcasecmp(argv[2], "prev_on_output") == 0 || | 107 | strcasecmp(argv[2], "prev_on_output") == 0 || |
108 | strcasecmp(argv[2], "back_and_forth") == 0 || | ||
109 | strcasecmp(argv[2], "current") == 0) { | 108 | strcasecmp(argv[2], "current") == 0) { |
110 | ws = workspace_by_name(argv[2]); | 109 | ws = workspace_by_name(argv[2]); |
111 | } else if (strcasecmp(argv[2], "back_and_forth") == 0) { | 110 | } else if (strcasecmp(argv[2], "back_and_forth") == 0) { |