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:
minus 2015-08-25 18:24:15 +02:00
parent 1efda79bf2
commit f22c937953
4 changed files with 27 additions and 8 deletions

View file

@ -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;
}