diff options
author | Luminarys <kizunanohikari@gmail.com> | 2015-08-20 11:42:01 -0500 |
---|---|---|
committer | Luminarys <kizunanohikari@gmail.com> | 2015-08-20 11:42:01 -0500 |
commit | c9935507f2bc8e2471f6642e99a2fb52ab1310f0 (patch) | |
tree | 1a6651645a230bccdc83e70ba84e8fefa97ebf13 | |
parent | Altered incorrect comment (diff) | |
download | sway-c9935507f2bc8e2471f6642e99a2fb52ab1310f0.tar.gz sway-c9935507f2bc8e2471f6642e99a2fb52ab1310f0.tar.zst sway-c9935507f2bc8e2471f6642e99a2fb52ab1310f0.zip |
Style fixes
-rw-r--r-- | sway/commands.c | 1 | ||||
-rw-r--r-- | sway/layout.c | 6 |
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) { | |||
563 | arrange_windows(active_workspace, -1, -1); | 563 | arrange_windows(active_workspace, -1, -1); |
564 | return true; | 564 | return true; |
565 | } | 565 | } |
566 | sway_log(L_INFO, "Done with resize"); | ||
567 | return true; | 566 | return true; |
568 | } | 567 | } |
569 | 568 | ||
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 | |||
378 | container->x += (int) amount; | 378 | container->x += (int) amount; |
379 | container->width += (int) amount; | 379 | container->width += (int) amount; |
380 | layout_match = container->layout == L_HORIZ; | 380 | layout_match = container->layout == L_HORIZ; |
381 | } else if(dir == MOVE_RIGHT) { | 381 | } else if (dir == MOVE_RIGHT) { |
382 | container->width += (int) amount; | 382 | container->width += (int) amount; |
383 | layout_match = container->layout == L_HORIZ; | 383 | layout_match = container->layout == L_HORIZ; |
384 | } else if(dir == MOVE_UP) { | 384 | } else if (dir == MOVE_UP) { |
385 | container->y += (int) amount; | 385 | container->y += (int) amount; |
386 | container->height += (int) amount; | 386 | container->height += (int) amount; |
387 | layout_match = container->layout == L_VERT; | 387 | layout_match = container->layout == L_VERT; |
388 | } else if(dir == MOVE_DOWN) { | 388 | } else if (dir == MOVE_DOWN) { |
389 | container->height += (int) amount; | 389 | container->height += (int) amount; |
390 | layout_match = container->layout == L_VERT; | 390 | layout_match = container->layout == L_VERT; |
391 | } | 391 | } |