diff options
author | wil <william.barsse@gmail.com> | 2017-01-08 14:49:47 +0100 |
---|---|---|
committer | wil <william.barsse@gmail.com> | 2017-01-08 14:49:47 +0100 |
commit | 063c79874a0d55ffa69f48947381607978e128d7 (patch) | |
tree | 716f7f1330fe77cc706af85e7a5c9d4dfe6dcd16 /sway/container.c | |
parent | [fix] Keep Clang happy (diff) | |
download | sway-063c79874a0d55ffa69f48947381607978e128d7.tar.gz sway-063c79874a0d55ffa69f48947381607978e128d7.tar.zst sway-063c79874a0d55ffa69f48947381607978e128d7.zip |
Indent cleanups
Diffstat (limited to 'sway/container.c')
-rw-r--r-- | sway/container.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sway/container.c b/sway/container.c index 3bdc8b6c..cf7d7dda 100644 --- a/sway/container.c +++ b/sway/container.c | |||
@@ -965,10 +965,11 @@ swayc_t *swayc_change_layout(swayc_t *container, enum swayc_layouts layout) { | |||
965 | // if layout change modifies the auto layout's major axis, swap width and height | 965 | // if layout change modifies the auto layout's major axis, swap width and height |
966 | // to preserve current ratios. | 966 | // to preserve current ratios. |
967 | if (is_auto_layout(layout) && is_auto_layout(container->layout)) { | 967 | if (is_auto_layout(layout) && is_auto_layout(container->layout)) { |
968 | enum swayc_layouts prev_major = (container->layout == L_AUTO_LEFT || | 968 | enum swayc_layouts prev_major = |
969 | container->layout == L_AUTO_RIGHT) | 969 | container->layout == L_AUTO_LEFT || container->layout == L_AUTO_RIGHT |
970 | ? L_HORIZ : L_VERT; | 970 | ? L_HORIZ : L_VERT; |
971 | enum swayc_layouts new_major = (layout == L_AUTO_LEFT || layout == L_AUTO_RIGHT) | 971 | enum swayc_layouts new_major = |
972 | layout == L_AUTO_LEFT || layout == L_AUTO_RIGHT | ||
972 | ? L_HORIZ : L_VERT; | 973 | ? L_HORIZ : L_VERT; |
973 | if (new_major != prev_major) { | 974 | if (new_major != prev_major) { |
974 | for (int i = 0; i < container->children->length; ++i) { | 975 | for (int i = 0; i < container->children->length; ++i) { |