diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-02 12:23:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-02 12:23:15 -0400 |
commit | 7e3aa1daa8b945b762d98bc67c660cdc6c94b72f (patch) | |
tree | d2b9dd4816efdf861e71bcd1eff6a70928e59dc6 /sway/commands/focus.c | |
parent | 122b96abed9955f78e3f157167d34312f5bb551d (diff) | |
parent | e3689dd5a93b4f4ae62637a2b81797335aafdcaf (diff) | |
download | sway-7e3aa1daa8b945b762d98bc67c660cdc6c94b72f.tar.xz |
Merge pull request #1693 from swaywm/move-cmd
Partially implement move command
Diffstat (limited to 'sway/commands/focus.c')
-rw-r--r-- | sway/commands/focus.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sway/commands/focus.c b/sway/commands/focus.c index 64f079f4..0a521b9e 100644 --- a/sway/commands/focus.c +++ b/sway/commands/focus.c @@ -20,10 +20,6 @@ static bool parse_movement_direction(const char *name, *out = MOVE_PARENT; } else if (strcasecmp(name, "child") == 0) { *out = MOVE_CHILD; - } else if (strcasecmp(name, "next") == 0) { - *out = MOVE_NEXT; - } else if (strcasecmp(name, "prev") == 0) { - *out = MOVE_PREV; } else { return false; } @@ -51,7 +47,8 @@ struct cmd_results *cmd_focus(int argc, char **argv) { "Expected 'focus <direction|parent|child|mode_toggle>' or 'focus output <direction|name>'"); } - struct sway_container *next_focus = container_get_in_direction(con, seat, direction); + struct sway_container *next_focus = container_get_in_direction( + con, seat, direction); if (next_focus) { sway_seat_set_focus(seat, next_focus); } |