aboutsummaryrefslogtreecommitdiffstats
path: root/sway/container.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/container.c')
-rw-r--r--sway/container.c13
1 files changed, 13 insertions, 0 deletions
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) {
524 if (!ASSERT_NONNULL(view)) { 524 if (!ASSERT_NONNULL(view)) {
525 return; 525 return;
526 } 526 }
527 // TODO add something like this.
528// if (container->type == C_ROOT) {
529// container->visible = true;
530// } else {
531// // Inherit visibility
532// swayc_t *parent = container->parent;
533// container->visible = parent->visible;
534// // special cases where visibility depends on focus
535// if (parent->type == C_OUTPUT || parent->layout == L_TABBED ||
536// parent->layout == L_STACKED) {
537// container->visible = parent->focused == container;
538// }
539// }
527 bool visible = *(bool *)data; 540 bool visible = *(bool *)data;
528 if (view->type == C_VIEW) { 541 if (view->type == C_VIEW) {
529 wlc_view_set_output(view->handle, swayc_parent_by_type(view, C_OUTPUT)->handle); 542 wlc_view_set_output(view->handle, swayc_parent_by_type(view, C_OUTPUT)->handle);