aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-08-07 23:04:21 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-08-07 23:04:21 +1000
commit5ac6f2f4290e609897faa322997fc7516e7dfb63 (patch)
tree18aed7720e1b6f9402a87b9bec466fa5d4fc88dc /sway/commands
parent1818c58e4060624ccb9102f88dd977702b688008 (diff)
downloadsway-5ac6f2f4290e609897faa322997fc7516e7dfb63.tar.xz
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.
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/move.c1
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,
strcasecmp(argv[2], "prev") == 0 ||
strcasecmp(argv[2], "next_on_output") == 0 ||
strcasecmp(argv[2], "prev_on_output") == 0 ||
- strcasecmp(argv[2], "back_and_forth") == 0 ||
strcasecmp(argv[2], "current") == 0) {
ws = workspace_by_name(argv[2]);
} else if (strcasecmp(argv[2], "back_and_forth") == 0) {