gri3-wm/src/output.c

27 lines
549 B
C
Raw Normal View History

#undef I3__FILE__
#define I3__FILE__ "output.c"
2011-02-21 01:43:39 +01:00
/*
* vim:ts=4:sw=4:expandtab
*
* i3 - an improved dynamic tiling window manager
* © 2009-2013 Michael Stapelberg and contributors (see also: LICENSE)
*
* output.c: Output (monitor) related functions.
*
2011-02-21 01:43:39 +01:00
*/
#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)
2011-02-21 01:43:39 +01:00
if (child->type == CT_CON)
return child;
return NULL;
2011-02-21 01:43:39 +01:00
}