mirror of
https://github.com/swaywm/sway.git
synced 2025-11-12 13:29:56 -05:00
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:
parent
e533014201
commit
ca89ba83a8
4 changed files with 14 additions and 16 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue