diff options
author | Taiyu <taiyu.len@gmail.com> | 2015-08-14 12:44:35 -0700 |
---|---|---|
committer | Taiyu <taiyu.len@gmail.com> | 2015-08-14 12:44:35 -0700 |
commit | 60d840fe3f2451c7af1d479d32134d639b30bfcc (patch) | |
tree | 5dc729e1cef06f84ac27ba8c74c23b7f3737d7ac | |
parent | changed swayc related functions, cleaned up some functions, moved wlc related... (diff) | |
download | sway-60d840fe3f2451c7af1d479d32134d639b30bfcc.tar.gz sway-60d840fe3f2451c7af1d479d32134d639b30bfcc.tar.zst sway-60d840fe3f2451c7af1d479d32134d639b30bfcc.zip |
style
-rw-r--r-- | sway/layout.c | 4 | ||||
-rw-r--r-- | 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) { | |||
31 | child->width, child->height, parent, parent->type, parent->width, parent->height); | 31 | child->width, child->height, parent, parent->type, parent->width, parent->height); |
32 | list_add(parent->children, child); | 32 | list_add(parent->children, child); |
33 | child->parent = parent; | 33 | child->parent = parent; |
34 | if(parent->focused == NULL) { | 34 | if (parent->focused == NULL) { |
35 | parent->focused = child; | 35 | parent->focused = child; |
36 | } | 36 | } |
37 | } | 37 | } |
@@ -118,7 +118,7 @@ void arrange_windows(swayc_t *container, int width, int height) { | |||
118 | }; | 118 | }; |
119 | if (wlc_view_get_state(container->handle) & WLC_BIT_FULLSCREEN) { | 119 | if (wlc_view_get_state(container->handle) & WLC_BIT_FULLSCREEN) { |
120 | swayc_t *parent = container; | 120 | swayc_t *parent = container; |
121 | while(parent->type != C_OUTPUT) { | 121 | while (parent->type != C_OUTPUT) { |
122 | parent = parent->parent; | 122 | parent = parent->parent; |
123 | } | 123 | } |
124 | geometry.origin.x = 0; | 124 | 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) { | |||
69 | 69 | ||
70 | swayc_t *workspace_create(const char* name) { | 70 | swayc_t *workspace_create(const char* name) { |
71 | swayc_t *parent = get_focused_container(&root_container); | 71 | swayc_t *parent = get_focused_container(&root_container); |
72 | while(parent->type != C_OUTPUT) { | 72 | while (parent->type != C_OUTPUT) { |
73 | parent = parent->parent; | 73 | parent = parent->parent; |
74 | } | 74 | } |
75 | return new_workspace(parent, name); | 75 | return new_workspace(parent, name); |
@@ -83,7 +83,7 @@ bool workspace_by_name(swayc_t *view, void *data) { | |||
83 | void set_mask(swayc_t *view, void *data) { | 83 | void set_mask(swayc_t *view, void *data) { |
84 | uint32_t *p = data; | 84 | uint32_t *p = data; |
85 | 85 | ||
86 | if(view->type == C_VIEW) { | 86 | if (view->type == C_VIEW) { |
87 | wlc_view_set_mask(view->handle, *p); | 87 | wlc_view_set_mask(view->handle, *p); |
88 | } | 88 | } |
89 | view->visible = (*p == 2); | 89 | view->visible = (*p == 2); |