From bf19f63a79f4d844259800c9415599271438cabd Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Thu, 1 Nov 2018 08:29:45 +1000 Subject: Wrap to fartherest output when running focus output Also moves the `opposite_direction` function into `util.c` as it's used in two places now. --- sway/commands/move.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'sway/commands/move.c') diff --git a/sway/commands/move.c b/sway/commands/move.c index 30c198e4..9035e3e2 100644 --- a/sway/commands/move.c +++ b/sway/commands/move.c @@ -27,19 +27,6 @@ static const char *expected_syntax = "'move [to] output ' or " "'move [to] mark '"; -enum wlr_direction opposite_direction(enum wlr_direction d) { - switch (d) { - case WLR_DIRECTION_UP: - return WLR_DIRECTION_DOWN; - case WLR_DIRECTION_DOWN: - return WLR_DIRECTION_UP; - case WLR_DIRECTION_RIGHT: - return WLR_DIRECTION_LEFT; - default: - return WLR_DIRECTION_RIGHT; - } -} - static struct sway_output *output_in_direction(const char *direction_string, struct sway_output *reference, int ref_lx, int ref_ly) { struct { -- cgit v1.2.3