aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuminarys <kizunanohikari@gmail.com>2015-08-20 11:42:01 -0500
committerLuminarys <kizunanohikari@gmail.com>2015-08-20 11:42:01 -0500
commitc9935507f2bc8e2471f6642e99a2fb52ab1310f0 (patch)
tree1a6651645a230bccdc83e70ba84e8fefa97ebf13
parentd06732e1a8c2df4d1523c1c0efeff5534156e387 (diff)
Style fixes
-rw-r--r--sway/commands.c1
-rw-r--r--sway/layout.c6
2 files changed, 3 insertions, 4 deletions
diff --git a/sway/commands.c b/sway/commands.c
index be6bc8cf..27dbb44b 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -563,7 +563,6 @@ static bool cmd_resize(struct sway_config *config, int argc, char **argv) {
arrange_windows(active_workspace, -1, -1);
return true;
}
- sway_log(L_INFO, "Done with resize");
return true;
}
diff --git a/sway/layout.c b/sway/layout.c
index b70e1041..c9c8fa7f 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -378,14 +378,14 @@ void recursive_resize(swayc_t *container, double amount, enum movement_direction
container->x += (int) amount;
container->width += (int) amount;
layout_match = container->layout == L_HORIZ;
- } else if(dir == MOVE_RIGHT) {
+ } else if (dir == MOVE_RIGHT) {
container->width += (int) amount;
layout_match = container->layout == L_HORIZ;
- } else if(dir == MOVE_UP) {
+ } else if (dir == MOVE_UP) {
container->y += (int) amount;
container->height += (int) amount;
layout_match = container->layout == L_VERT;
- } else if(dir == MOVE_DOWN) {
+ } else if (dir == MOVE_DOWN) {
container->height += (int) amount;
layout_match = container->layout == L_VERT;
}