]> git.sur5r.net Git - i3/i3/blob - src/output.c
Merge branch 'fix-dump-log-errmsg'
[i3/i3] / src / output.c
1 /*
2  * vim:ts=4:sw=4:expandtab
3  *
4  * i3 - an improved dynamic tiling window manager
5  * © 2009-2011 Michael Stapelberg and contributors (see also: LICENSE)
6  *
7  * output.c: Output (monitor) related functions.
8  *
9  */
10 #include "all.h"
11
12 /*
13  * Returns the output container below the given output container.
14  *
15  */
16 Con *output_get_content(Con *output) {
17     Con *child;
18
19     TAILQ_FOREACH(child, &(output->nodes_head), nodes)
20         if (child->type == CT_CON)
21             return child;
22
23     ELOG("output_get_content() called on non-output %p\n", output);
24     assert(false);
25 }