mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
fixed style
This commit is contained in:
parent
b43161fd45
commit
f923c4e6b9
1 changed files with 3 additions and 3 deletions
|
@ -9,16 +9,16 @@ int move_focus(enum movement_direction direction) {
|
||||||
swayc_t *current = get_focused_container(&root_container);
|
swayc_t *current = get_focused_container(&root_container);
|
||||||
swayc_t *parent = current->parent;
|
swayc_t *parent = current->parent;
|
||||||
|
|
||||||
if(direction == MOVE_PARENT) {
|
if (direction == MOVE_PARENT) {
|
||||||
current = parent;
|
current = parent;
|
||||||
parent = parent->parent;
|
parent = parent->parent;
|
||||||
if(parent->type == C_ROOT) {
|
if (parent->type == C_ROOT) {
|
||||||
sway_log(L_DEBUG, "Focus cannot move to parent");
|
sway_log(L_DEBUG, "Focus cannot move to parent");
|
||||||
return 1;
|
return 1;
|
||||||
} else {
|
} else {
|
||||||
sway_log(L_DEBUG, "Moving focus away from %p", current);
|
sway_log(L_DEBUG, "Moving focus away from %p", current);
|
||||||
unfocus_all(parent);
|
unfocus_all(parent);
|
||||||
focus_view (parent);
|
focus_view(parent);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue