From f22c9379530ebaacefcc337714cc2a5fe0db8902 Mon Sep 17 00:00:00 2001 From: minus Date: Tue, 25 Aug 2015 18:24:15 +0200 Subject: 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) --- include/container.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') 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 -- cgit v1.2.3-54-g00ecf