You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
400 B
16 lines
400 B
#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;
|
|
}
|