mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 16:01:27 +00:00
output: Fix code style.
This commit is contained in:
parent
c49e5340db
commit
83ca7d3a5c
|
@ -5,17 +5,13 @@
|
||||||
swayc_t *output_by_name(const char* name) {
|
swayc_t *output_by_name(const char* name) {
|
||||||
if (strcasecmp(name, "left") == 0) {
|
if (strcasecmp(name, "left") == 0) {
|
||||||
return swayc_adjacent_output(NULL, MOVE_LEFT);
|
return swayc_adjacent_output(NULL, MOVE_LEFT);
|
||||||
}
|
} else if (strcasecmp(name, "right") == 0) {
|
||||||
else if (strcasecmp(name, "right") == 0) {
|
|
||||||
return swayc_adjacent_output(NULL, MOVE_RIGHT);
|
return swayc_adjacent_output(NULL, MOVE_RIGHT);
|
||||||
}
|
} else if (strcasecmp(name, "up") == 0) {
|
||||||
else if (strcasecmp(name, "up") == 0) {
|
|
||||||
return swayc_adjacent_output(NULL, MOVE_UP);
|
return swayc_adjacent_output(NULL, MOVE_UP);
|
||||||
}
|
} else if (strcasecmp(name, "down") == 0) {
|
||||||
else if (strcasecmp(name, "down") == 0) {
|
|
||||||
return swayc_adjacent_output(NULL, MOVE_DOWN);
|
return swayc_adjacent_output(NULL, MOVE_DOWN);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
for(int i = 0; i < root_container.children->length; ++i) {
|
for(int i = 0; i < root_container.children->length; ++i) {
|
||||||
swayc_t *c = root_container.children->items[i];
|
swayc_t *c = root_container.children->items[i];
|
||||||
if (c->type == C_OUTPUT && strcasecmp(c->name, name) == 0) {
|
if (c->type == C_OUTPUT && strcasecmp(c->name, name) == 0) {
|
||||||
|
|
Loading…
Reference in a new issue