slight fix

This commit is contained in:
taiyu 2015-08-26 16:50:47 -07:00
parent 274e56a602
commit 4df64127e9
3 changed files with 25 additions and 5 deletions

View file

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