changed view visibility to be bool

view_visibility enum remains with one constant that is the mask to wlc's view masking
This commit is contained in:
minus 2015-08-25 20:13:35 +02:00
parent e533014201
commit ca89ba83a8
4 changed files with 14 additions and 16 deletions

View file

@ -28,11 +28,11 @@ static void update_focus(swayc_t *c) {
if (parent->focused) {
swayc_t *ws = parent->focused;
// hide visibility of old workspace
uint32_t mask = INVISIBLE;
container_map(ws, set_view_visibility, &mask);
bool visible = false;
container_map(ws, set_view_visibility, &visible);
// set visibility of new workspace
mask = VISIBLE;
container_map(c, set_view_visibility, &mask);
visible = true;
container_map(c, set_view_visibility, &visible);
destroy_workspace(ws);
}
break;