i3
src/output.c
Go to the documentation of this file.
00001 /*
00002  * vim:ts=4:sw=4:expandtab
00003  *
00004  * i3 - an improved dynamic tiling window manager
00005  * © 2009-2011 Michael Stapelberg and contributors (see also: LICENSE)
00006  *
00007  * output.c: Output (monitor) related functions.
00008  *
00009  */
00010 #include "all.h"
00011 
00012 /*
00013  * Returns the output container below the given output container.
00014  *
00015  */
00016 Con *output_get_content(Con *output) {
00017     Con *child;
00018 
00019     TAILQ_FOREACH(child, &(output->nodes_head), nodes)
00020         if (child->type == CT_CON)
00021             return child;
00022 
00023     ELOG("output_get_content() called on non-output %p\n", output);
00024     assert(false);
00025 }