diff options
author | Drew DeVault <[email protected]> | 2015-08-09 23:04:37 -0400 |
---|---|---|
committer | Drew DeVault <[email protected]> | 2015-08-09 23:04:37 -0400 |
commit | f6e65b6bb235cd77329e961e180e2236312ebacc (patch) | |
tree | 1cef31857263d39c1ce189e1b12c08d5c181d046 /sway/commands.c | |
parent | b49cfa0c16b442b048213296bc3f75c4e5393a6e (diff) |
Don't override keys if command fails
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/commands.c b/sway/commands.c index 9ce1d83e..40d9d353 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -104,13 +104,13 @@ int cmd_focus(struct sway_config *config, int argc, char **argv) { return 1; } if (strcasecmp(argv[0], "left") == 0) { - move_focus(MOVE_LEFT); + return move_focus(MOVE_LEFT); } else if (strcasecmp(argv[0], "right") == 0) { - move_focus(MOVE_RIGHT); + return move_focus(MOVE_RIGHT); } else if (strcasecmp(argv[0], "up") == 0) { - move_focus(MOVE_UP); + return move_focus(MOVE_UP); } else if (strcasecmp(argv[0], "down") == 0) { - move_focus(MOVE_DOWN); + return move_focus(MOVE_DOWN); } else if (strcasecmp(argv[0], "parent") == 0) { swayc_t *current = get_focused_container(&root_container); if (current && current->parent) { |