summaryrefslogtreecommitdiff
path: root/sway/workspace.c
diff options
context:
space:
mode:
authorTaiyu <[email protected]>2015-08-14 12:44:35 -0700
committerTaiyu <[email protected]>2015-08-14 12:44:35 -0700
commit60d840fe3f2451c7af1d479d32134d639b30bfcc (patch)
tree5dc729e1cef06f84ac27ba8c74c23b7f3737d7ac /sway/workspace.c
parentb8cba33c013e580e6e793ec67a5442407d94a002 (diff)
style
Diffstat (limited to 'sway/workspace.c')
-rw-r--r--sway/workspace.c4
1 files changed, 2 insertions, 2 deletions
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);