From 4df64127e951cb6f13d65fc667c10ffc0f4a4dbd Mon Sep 17 00:00:00 2001 From: taiyu Date: Wed, 26 Aug 2015 16:50:47 -0700 Subject: slight fix --- sway/container.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'sway/container.c') diff --git a/sway/container.c b/sway/container.c index fda90e5b..3558809a 100644 --- a/sway/container.c +++ b/sway/container.c @@ -524,6 +524,19 @@ void set_view_visibility(swayc_t *view, void *data) { if (!ASSERT_NONNULL(view)) { return; } + // TODO add something like this. +// if (container->type == C_ROOT) { +// container->visible = true; +// } else { +// // Inherit visibility +// swayc_t *parent = container->parent; +// container->visible = parent->visible; +// // special cases where visibility depends on focus +// if (parent->type == C_OUTPUT || parent->layout == L_TABBED || +// parent->layout == L_STACKED) { +// container->visible = parent->focused == container; +// } +// } bool visible = *(bool *)data; if (view->type == C_VIEW) { wlc_view_set_output(view->handle, swayc_parent_by_type(view, C_OUTPUT)->handle); -- cgit v1.2.3