mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2025-01-30 08:35:02 +01:00
Implement focus parent
This commit is contained in:
parent
d62efd70e4
commit
8597c3c7e7
1 changed files with 5 additions and 0 deletions
|
@ -111,6 +111,11 @@ int cmd_focus(struct sway_config *config, int argc, char **argv) {
|
||||||
move_focus(MOVE_UP);
|
move_focus(MOVE_UP);
|
||||||
} else if (strcasecmp(argv[0], "down") == 0) {
|
} else if (strcasecmp(argv[0], "down") == 0) {
|
||||||
move_focus(MOVE_DOWN);
|
move_focus(MOVE_DOWN);
|
||||||
|
} else if (strcasecmp(argv[0], "parent") == 0) {
|
||||||
|
swayc_t *current = get_focused_container(&root_container);
|
||||||
|
current->parent->focused = NULL;
|
||||||
|
unfocus_all(current->parent);
|
||||||
|
focus_view(current->parent);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue