aboutsummaryrefslogtreecommitdiffstats
path: root/sway/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/output.c')
-rw-r--r--sway/output.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/sway/output.c b/sway/output.c
index 39c933f8..5044b7aa 100644
--- a/sway/output.c
+++ b/sway/output.c
@@ -5,17 +5,13 @@
5swayc_t *output_by_name(const char* name) { 5swayc_t *output_by_name(const char* name) {
6 if (strcasecmp(name, "left") == 0) { 6 if (strcasecmp(name, "left") == 0) {
7 return swayc_adjacent_output(NULL, MOVE_LEFT); 7 return swayc_adjacent_output(NULL, MOVE_LEFT);
8 } 8 } else if (strcasecmp(name, "right") == 0) {
9 else if (strcasecmp(name, "right") == 0) {
10 return swayc_adjacent_output(NULL, MOVE_RIGHT); 9 return swayc_adjacent_output(NULL, MOVE_RIGHT);
11 } 10 } else if (strcasecmp(name, "up") == 0) {
12 else if (strcasecmp(name, "up") == 0) {
13 return swayc_adjacent_output(NULL, MOVE_UP); 11 return swayc_adjacent_output(NULL, MOVE_UP);
14 } 12 } else if (strcasecmp(name, "down") == 0) {
15 else if (strcasecmp(name, "down") == 0) {
16 return swayc_adjacent_output(NULL, MOVE_DOWN); 13 return swayc_adjacent_output(NULL, MOVE_DOWN);
17 } 14 } else {
18 else {
19 for(int i = 0; i < root_container.children->length; ++i) { 15 for(int i = 0; i < root_container.children->length; ++i) {
20 swayc_t *c = root_container.children->items[i]; 16 swayc_t *c = root_container.children->items[i];
21 if (c->type == C_OUTPUT && strcasecmp(c->name, name) == 0) { 17 if (c->type == C_OUTPUT && strcasecmp(c->name, name) == 0) {