summaryrefslogtreecommitdiff
path: root/sway/layout.c
diff options
context:
space:
mode:
authorHalf-Shot <[email protected]>2015-08-20 22:29:36 +0100
committerHalf-Shot <[email protected]>2015-08-20 22:29:36 +0100
commit68213d57c5c758d05582ef8a9f0db226ddbaefc7 (patch)
treee177cdcf8066e7e55b5698b44c7d959af9aff247 /sway/layout.c
parent713bf29ec901b711d782e96721898c32fcd5d56e (diff)
Fixed style errors
Diffstat (limited to 'sway/layout.c')
-rw-r--r--sway/layout.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sway/layout.c b/sway/layout.c
index 0c1f736d..a7536727 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -118,34 +118,34 @@ void move_container(swayc_t *container,swayc_t* root,enum movement_direction dir
//Rearrange
for (i = 0; i < clength; ++i) {
swayc_t *child = root->children->items[i];
- if(child->handle == container->handle){
- if(clength == 1){
+ if (child->handle == container->handle){
+ if (clength == 1){
//Only one container, meh.
break;
}
- if(direction == MOVE_LEFT && i > 0){
+ if (direction == MOVE_LEFT && i > 0){
temp = root->children->items[i-1];
root->children->items[i] = temp;
root->children->items[i-1] = container;
arrange_windows(&root_container,-1,-1);
}
- else if(direction == MOVE_RIGHT && i < clength-1){
+ else if (direction == MOVE_RIGHT && i < clength-1){
temp = root->children->items[i+1];
root->children->items[i] = temp;
root->children->items[i+1] = container;
arrange_windows(&root_container,-1,-1);
}
- else if(direction == MOVE_UP){
+ else if (direction == MOVE_UP){
sway_log(L_INFO, "Moving up not implemented");
}
- else if(direction == MOVE_DOWN){
+ else if (direction == MOVE_DOWN){
sway_log(L_INFO, "Moving down not implemented");
}
break;
}
- else if(child->children != NULL){
+ else if (child->children != NULL){
move_container(container,child,direction);
}
}