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

@ -56,6 +56,11 @@ struct sway_container {
struct sway_container *focused;
};
enum view_visibility {
INVISIBLE = 1,
VISIBLE = 2
};
// Container Creation
swayc_t *new_output(wlc_handle handle);
@ -106,4 +111,7 @@ void container_map(swayc_t *, void (*f)(swayc_t *, void *), void *);
void set_view_visibility(swayc_t *view, void *data);
void reset_gaps(swayc_t *view, void *data);
void update_visibility(swayc_t *container);
#endif