aboutsummaryrefslogtreecommitdiff
path: root/sway/layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/layout.c')
-rw-r--r--sway/layout.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/layout.c b/sway/layout.c
index 2de6da45..2195863e 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -1487,3 +1487,7 @@ enum swayc_layouts default_layout(swayc_t *output) {
return L_VERT;
}
}
+
+bool is_auto_layout(enum swayc_layouts layout) {
+ return (layout >= L_AUTO_FIRST) && (layout <= L_AUTO_LAST);
+}