aboutsummaryrefslogtreecommitdiffstats
path: root/sway/output.c
diff options
context:
space:
mode:
authorLibravatar S. Christoffer Eliesen <christoffer@eliesen.no>2015-10-25 13:55:46 +0100
committerLibravatar S. Christoffer Eliesen <christoffer@eliesen.no>2015-10-25 13:57:11 +0100
commit83ca7d3a5ccc3943de80cd07bd52e7005b13ab75 (patch)
treea72bb20cd5dcdf6f328e6f5cfbd9da870fd82027 /sway/output.c
parentcommands: cmd_move: Fix "move container to workspace _number_ n" (diff)
downloadsway-83ca7d3a5ccc3943de80cd07bd52e7005b13ab75.tar.gz
sway-83ca7d3a5ccc3943de80cd07bd52e7005b13ab75.tar.zst
sway-83ca7d3a5ccc3943de80cd07bd52e7005b13ab75.zip
output: Fix code style.
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) {