]> git.sur5r.net Git - i3/i3/blobdiff - src/output.c
Bugfix: fix disabling RandR outputs
[i3/i3] / src / output.c
diff --git a/src/output.c b/src/output.c
new file mode 100644 (file)
index 0000000..6848792
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ * vim:ts=4:sw=4:expandtab
+ */
+
+#include "all.h"
+
+/*
+ * Returns the output container below the given output container.
+ *
+ */
+Con *output_get_content(Con *output) {
+    Con *child;
+
+    TAILQ_FOREACH(child, &(output->nodes_head), nodes)
+        if (child->type == CT_CON)
+            return child;
+
+    ELOG("output_get_content() called on non-output %p\n", output);
+    assert(false);
+}