diff options
-rw-r--r-- | include/sway/layout.h | 5 | ||||
-rw-r--r-- | sway/layout.c | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/include/sway/layout.h b/include/sway/layout.h index a771a72e..d7fe748d 100644 --- 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, .. | |||
75 | */ | 75 | */ |
76 | enum swayc_layouts default_layout(swayc_t *output); | 76 | enum swayc_layouts default_layout(swayc_t *output); |
77 | 77 | ||
78 | inline bool is_auto_layout(enum swayc_layouts layout) { | 78 | bool is_auto_layout(enum swayc_layouts layout); |
79 | return (layout >= L_AUTO_FIRST) && (layout <= L_AUTO_LAST); | 79 | |
80 | } | ||
81 | #endif | 80 | #endif |
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 | |||
1491 | bool is_auto_layout(enum swayc_layouts layout) { | ||
1492 | return (layout >= L_AUTO_FIRST) && (layout <= L_AUTO_LAST); | ||
1493 | } | ||