summaryrefslogtreecommitdiff
path: root/include/sway/layout.h
diff options
context:
space:
mode:
authorwil <[email protected]>2016-12-29 20:26:35 +0100
committerwil <[email protected]>2016-12-29 20:31:30 +0100
commita0aa8d9780c6c8b0138800e3b2c2c0053174a2c5 (patch)
treec82dec85d4f5c9dbe0b93131f56614bccaa3a227 /include/sway/layout.h
parent2b0e3c212a6c269b68879ba6c2d84ebedd5938e1 (diff)
cleanup in auto layouts
- added L_AUTO_FIRST/LAST instead of using explicit layouts. - when switching between auto layout that don't share the same major axis, invert the width/height of their child views to preserve their relative proportions.
Diffstat (limited to 'include/sway/layout.h')
-rw-r--r--include/sway/layout.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sway/layout.h b/include/sway/layout.h
index 38096947..a771a72e 100644
--- a/include/sway/layout.h
+++ b/include/sway/layout.h
@@ -76,6 +76,6 @@ void swayc_log(log_importance_t verbosity, swayc_t *cont, const char* format, ..
enum swayc_layouts default_layout(swayc_t *output);
inline bool is_auto_layout(enum swayc_layouts layout) {
- return (layout >= L_AUTO_LEFT) && (layout <= L_AUTO_BOTTOM);
+ return (layout >= L_AUTO_FIRST) && (layout <= L_AUTO_LAST);
}
#endif