mirror of
https://github.com/swaywm/sway.git
synced 2025-11-20 06:59:46 -05:00
refactored view visibility
- replace visibilty mask integers with an enum - set output's visibilty mask on creation - added update_visibility to manually update a containers visibility (e.g. when it moved to an invisible workspace)
This commit is contained in:
parent
1efda79bf2
commit
f22c937953
4 changed files with 27 additions and 8 deletions
|
|
@ -90,6 +90,9 @@ swayc_t *container_under_pointer(void) {
|
|||
static bool handle_output_created(wlc_handle output) {
|
||||
swayc_t *op = new_output(output);
|
||||
|
||||
// Visibilty mask to be able to make view invisible
|
||||
wlc_output_set_mask(output, VISIBLE);
|
||||
|
||||
if (!op) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue