diff options
author | Taiyu <taiyu.len@gmail.com> | 2015-08-10 07:06:54 -0700 |
---|---|---|
committer | Taiyu <taiyu.len@gmail.com> | 2015-08-10 07:06:54 -0700 |
commit | f923c4e6b93a5361c1737b239dbacef6e7219b04 (patch) | |
tree | c1923dc0b6befdfd931d0b0238a5943aa279ae10 | |
parent | fixed focus_parent, moved into move_focus() function (diff) | |
download | sway-f923c4e6b93a5361c1737b239dbacef6e7219b04.tar.gz sway-f923c4e6b93a5361c1737b239dbacef6e7219b04.tar.zst sway-f923c4e6b93a5361c1737b239dbacef6e7219b04.zip |
fixed style
-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 | } |