commit c01b89839874239bee7948fad004b19a19917432
parent 15745abf0cb4948fcc750a9e78139d3c02e1c1f0
Author: Drew DeVault <sir@cmpwn.com>
Date: Sun, 1 Jan 2017 12:36:47 -0500
Fix inline is_auto_layout
Diffstat:
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/include/sway/layout.h b/include/sway/layout.h
@@ -75,7 +75,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_FIRST) && (layout <= L_AUTO_LAST);
-}
+bool is_auto_layout(enum swayc_layouts layout);
+
#endif
diff --git 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);
+}