diff options
author | minus <minus@mnus.de> | 2015-08-25 18:24:15 +0200 |
---|---|---|
committer | minus <minus@mnus.de> | 2015-08-25 18:24:15 +0200 |
commit | f22c9379530ebaacefcc337714cc2a5fe0db8902 (patch) | |
tree | d45200574d07c1522e3c83c378b4e5d1a66d4594 /include | |
parent | 1efda79bf2f72a416806de3159e1c2936c5fdbe9 (diff) | |
download | sway-f22c9379530ebaacefcc337714cc2a5fe0db8902.tar.xz |
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)
Diffstat (limited to 'include')
-rw-r--r-- | include/container.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/container.h b/include/container.h index aadba5de..f684129a 100644 --- a/include/container.h +++ b/include/container.h @@ -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 |