diff options
author | 2015-08-25 20:13:35 +0200 | |
---|---|---|
committer | 2015-08-25 20:13:35 +0200 | |
commit | ca89ba83a8adf392ba3409f18d3af2545d69b034 (patch) | |
tree | 9b94c93270737625c17bde12669b67bd14385577 /sway/focus.c | |
parent | added missing util.h/c stuff (diff) | |
download | sway-ca89ba83a8adf392ba3409f18d3af2545d69b034.tar.gz sway-ca89ba83a8adf392ba3409f18d3af2545d69b034.tar.zst sway-ca89ba83a8adf392ba3409f18d3af2545d69b034.zip |
changed view visibility to be bool
view_visibility enum remains with one constant that is the mask to wlc's view masking
Diffstat (limited to 'sway/focus.c')
-rw-r--r-- | sway/focus.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/focus.c b/sway/focus.c index 823eefa2..1086f1a8 100644 --- a/sway/focus.c +++ b/sway/focus.c | |||
@@ -28,11 +28,11 @@ static void update_focus(swayc_t *c) { | |||
28 | if (parent->focused) { | 28 | if (parent->focused) { |
29 | swayc_t *ws = parent->focused; | 29 | swayc_t *ws = parent->focused; |
30 | // hide visibility of old workspace | 30 | // hide visibility of old workspace |
31 | uint32_t mask = INVISIBLE; | 31 | bool visible = false; |
32 | container_map(ws, set_view_visibility, &mask); | 32 | container_map(ws, set_view_visibility, &visible); |
33 | // set visibility of new workspace | 33 | // set visibility of new workspace |
34 | mask = VISIBLE; | 34 | visible = true; |
35 | container_map(c, set_view_visibility, &mask); | 35 | container_map(c, set_view_visibility, &visible); |
36 | destroy_workspace(ws); | 36 | destroy_workspace(ws); |
37 | } | 37 | } |
38 | break; | 38 | break; |