mirror of
https://github.com/swaywm/sway.git
synced 2025-11-09 13:29:49 -05:00
Indent cleanups
This commit is contained in:
parent
d822150d83
commit
063c79874a
3 changed files with 34 additions and 33 deletions
|
|
@ -965,10 +965,11 @@ swayc_t *swayc_change_layout(swayc_t *container, enum swayc_layouts layout) {
|
|||
// if layout change modifies the auto layout's major axis, swap width and height
|
||||
// to preserve current ratios.
|
||||
if (is_auto_layout(layout) && is_auto_layout(container->layout)) {
|
||||
enum swayc_layouts prev_major = (container->layout == L_AUTO_LEFT ||
|
||||
container->layout == L_AUTO_RIGHT)
|
||||
enum swayc_layouts prev_major =
|
||||
container->layout == L_AUTO_LEFT || container->layout == L_AUTO_RIGHT
|
||||
? L_HORIZ : L_VERT;
|
||||
enum swayc_layouts new_major = (layout == L_AUTO_LEFT || layout == L_AUTO_RIGHT)
|
||||
enum swayc_layouts new_major =
|
||||
layout == L_AUTO_LEFT || layout == L_AUTO_RIGHT
|
||||
? L_HORIZ : L_VERT;
|
||||
if (new_major != prev_major) {
|
||||
for (int i = 0; i < container->children->length; ++i) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue