2012-08-12 06:18:43 -04:00
|
|
|
#undef I3__FILE__
|
|
|
|
#define I3__FILE__ "output.c"
|
2011-02-20 19:43:39 -05:00
|
|
|
/*
|
|
|
|
* vim:ts=4:sw=4:expandtab
|
2011-10-22 18:40:02 -04:00
|
|
|
*
|
|
|
|
* i3 - an improved dynamic tiling window manager
|
2013-01-25 08:53:15 -05:00
|
|
|
* © 2009-2013 Michael Stapelberg and contributors (see also: LICENSE)
|
2011-10-22 18:40:02 -04:00
|
|
|
*
|
|
|
|
* output.c: Output (monitor) related functions.
|
|
|
|
*
|
2011-02-20 19:43:39 -05: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)
|
|
|
|
if (child->type == CT_CON)
|
|
|
|
return child;
|
|
|
|
|
2013-01-25 08:53:15 -05:00
|
|
|
return NULL;
|
2011-02-20 19:43:39 -05:00
|
|
|
}
|