summaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2017-01-01 12:36:47 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2017-01-01 12:36:47 -0500
commitc01b89839874239bee7948fad004b19a19917432 (patch)
treeee797ee90b9567a46577094b26468ddbc6dbef0b /sway
parent[fix] cycle auto layouts backwards (diff)
downloadsway-c01b89839874239bee7948fad004b19a19917432.tar.gz
sway-c01b89839874239bee7948fad004b19a19917432.tar.zst
sway-c01b89839874239bee7948fad004b19a19917432.zip
Fix inline is_auto_layout
Diffstat (limited to 'sway')
-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) {
1487 return L_VERT; 1487 return L_VERT;
1488 } 1488 }
1489} 1489}
1490
1491bool is_auto_layout(enum swayc_layouts layout) {
1492 return (layout >= L_AUTO_FIRST) && (layout <= L_AUTO_LAST);
1493}