sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 8597c3c7e7c2fcdb712f49e06c70882541389929
parent d62efd70e423104dc21405535be59782880271c6
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun,  9 Aug 2015 20:20:53 -0400

Implement focus parent

Diffstat:
Msway/commands.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/sway/commands.c b/sway/commands.c @@ -111,6 +111,11 @@ int cmd_focus(struct sway_config *config, int argc, char **argv) { move_focus(MOVE_UP); } else if (strcasecmp(argv[0], "down") == 0) { 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; }