summaryrefslogtreecommitdiffstats
path: root/sway/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 40d9d353..64130fdc 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -112,12 +112,7 @@ int cmd_focus(struct sway_config *config, int argc, char **argv) {
112 } else if (strcasecmp(argv[0], "down") == 0) { 112 } else if (strcasecmp(argv[0], "down") == 0) {
113 return move_focus(MOVE_DOWN); 113 return move_focus(MOVE_DOWN);
114 } else if (strcasecmp(argv[0], "parent") == 0) { 114 } else if (strcasecmp(argv[0], "parent") == 0) {
115 swayc_t *current = get_focused_container(&root_container); 115 return move_focus(MOVE_PARENT);
116 if (current && current->parent) {
117 current->parent->focused = NULL;
118 unfocus_all(current->parent);
119 focus_view(current->parent);
120 }
121 } 116 }
122 return 0; 117 return 0;
123} 118}