mirror of
https://github.com/swaywm/sway.git
synced 2025-11-11 13:29:51 -05:00
Merge branch 'wlroots' into view-redesign
This commit is contained in:
commit
a4a241697a
35 changed files with 1055 additions and 265 deletions
|
|
@ -1,3 +1,4 @@
|
|||
#include <strings.h>
|
||||
#include "sway/tree/container.h"
|
||||
#include "sway/tree/layout.h"
|
||||
#include "sway/output.h"
|
||||
|
|
@ -38,3 +39,13 @@ struct sway_container *container_output_destroy(struct sway_container *output) {
|
|||
container_destroy(output);
|
||||
return &root_container;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue