move output code out of the tree

This commit is contained in:
Tony Crisci 2018-04-03 12:39:03 -04:00
parent 09d448ea2d
commit cba258e16a
3 changed files with 11 additions and 16 deletions

View file

@ -1,15 +0,0 @@
#include <strings.h>
#include "sway/tree/container.h"
#include "sway/tree/layout.h"
#include "sway/output.h"
#include "log.h"
struct sway_container *output_by_name(const char *name) {
for (int i = 0; i < root_container.children->length; ++i) {
struct sway_container *output = root_container.children->items[i];
if (strcasecmp(output->name, name) == 0){
return output;
}
}
return NULL;
}