summaryrefslogtreecommitdiff
path: root/sway/container.c
diff options
context:
space:
mode:
authortaiyu <[email protected]>2015-08-26 16:50:47 -0700
committertaiyu <[email protected]>2015-08-26 16:50:47 -0700
commit4df64127e951cb6f13d65fc667c10ffc0f4a4dbd (patch)
tree23a2689b9f15d52d3d8893743671f0fd30586698 /sway/container.c
parent274e56a60256214d1f899c37f1c978e4b8470644 (diff)
slight fix
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) {
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);