Bugfix: fix disabling RandR outputs

This commit is contained in:
Michael Stapelberg
2011-02-21 01:43:39 +01:00
parent 35e79c87c8
commit a92b9dca73
5 changed files with 43 additions and 5 deletions

20
src/output.c Normal file
View File

@ -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);
}