From 60d840fe3f2451c7af1d479d32134d639b30bfcc Mon Sep 17 00:00:00 2001 From: Taiyu Date: Fri, 14 Aug 2015 12:44:35 -0700 Subject: style --- sway/layout.c | 4 ++-- sway/workspace.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sway/layout.c b/sway/layout.c index 0db4dc4d..8b9315b4 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -31,7 +31,7 @@ void add_child(swayc_t *parent, swayc_t *child) { child->width, child->height, parent, parent->type, parent->width, parent->height); list_add(parent->children, child); child->parent = parent; - if(parent->focused == NULL) { + if (parent->focused == NULL) { parent->focused = child; } } @@ -118,7 +118,7 @@ void arrange_windows(swayc_t *container, int width, int height) { }; if (wlc_view_get_state(container->handle) & WLC_BIT_FULLSCREEN) { swayc_t *parent = container; - while(parent->type != C_OUTPUT) { + while (parent->type != C_OUTPUT) { parent = parent->parent; } geometry.origin.x = 0; diff --git a/sway/workspace.c b/sway/workspace.c index 88596dfe..cd5472e3 100644 --- a/sway/workspace.c +++ b/sway/workspace.c @@ -69,7 +69,7 @@ char *workspace_next_name(void) { swayc_t *workspace_create(const char* name) { swayc_t *parent = get_focused_container(&root_container); - while(parent->type != C_OUTPUT) { + while (parent->type != C_OUTPUT) { parent = parent->parent; } return new_workspace(parent, name); @@ -83,7 +83,7 @@ bool workspace_by_name(swayc_t *view, void *data) { void set_mask(swayc_t *view, void *data) { uint32_t *p = data; - if(view->type == C_VIEW) { + if (view->type == C_VIEW) { wlc_view_set_mask(view->handle, *p); } view->visible = (*p == 2); -- cgit v1.2.3-54-g00ecf