diff options
-rw-r--r-- | sway/movement.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/movement.c b/sway/movement.c index 4503a716..a55d0350 100644 --- a/sway/movement.c +++ b/sway/movement.c | |||
@@ -9,16 +9,16 @@ int move_focus(enum movement_direction direction) { | |||
9 | swayc_t *current = get_focused_container(&root_container); | 9 | swayc_t *current = get_focused_container(&root_container); |
10 | swayc_t *parent = current->parent; | 10 | swayc_t *parent = current->parent; |
11 | 11 | ||
12 | if(direction == MOVE_PARENT) { | 12 | if (direction == MOVE_PARENT) { |
13 | current = parent; | 13 | current = parent; |
14 | parent = parent->parent; | 14 | parent = parent->parent; |
15 | if(parent->type == C_ROOT) { | 15 | if (parent->type == C_ROOT) { |
16 | sway_log(L_DEBUG, "Focus cannot move to parent"); | 16 | sway_log(L_DEBUG, "Focus cannot move to parent"); |
17 | return 1; | 17 | return 1; |
18 | } else { | 18 | } else { |
19 | sway_log(L_DEBUG, "Moving focus away from %p", current); | 19 | sway_log(L_DEBUG, "Moving focus away from %p", current); |
20 | unfocus_all(parent); | 20 | unfocus_all(parent); |
21 | focus_view (parent); | 21 | focus_view(parent); |
22 | return 0; | 22 | return 0; |
23 | } | 23 | } |
24 | } | 24 | } |