mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
Don't override keys if command fails
This commit is contained in:
parent
b49cfa0c16
commit
f6e65b6bb2
4 changed files with 9 additions and 10 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue