sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 83ca7d3a5ccc3943de80cd07bd52e7005b13ab75
parent c49e5340db64d9e8018696ecca55cacd14ee638a
Author: S. Christoffer Eliesen <christoffer@eliesen.no>
Date:   Sun, 25 Oct 2015 13:55:46 +0100

output: Fix code style.

Diffstat:
Msway/output.c | 12++++--------
1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/sway/output.c b/sway/output.c @@ -5,17 +5,13 @@ swayc_t *output_by_name(const char* name) { if (strcasecmp(name, "left") == 0) { 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); - } - else if (strcasecmp(name, "up") == 0) { + } else if (strcasecmp(name, "up") == 0) { 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); - } - else { + } else { for(int i = 0; i < root_container.children->length; ++i) { swayc_t *c = root_container.children->items[i]; if (c->type == C_OUTPUT && strcasecmp(c->name, name) == 0) {