aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2017-01-01 21:52:49 +0100
committerFurkan Sahin <furkan-dev@proton.me>2017-01-01 21:52:49 +0100
commita45b30d8beb0eb6c781c2709a0c853da39bea6b4 (patch)
treed8f9649c86010ed5e3c1f109e789af680aad717b /include
parent3917142aa47ebf31b78cd45cd66cdff22022082a (diff)
[fix] cleanups suggested by Sway community
Diffstat (limited to 'include')
-rw-r--r--include/sway/container.h4
-rw-r--r--include/sway/layout.h4
2 files changed, 3 insertions, 5 deletions
diff --git a/include/sway/container.h b/include/sway/container.h
index f0574b1b..ff65628c 100644
--- a/include/sway/container.h
+++ b/include/sway/container.h
@@ -158,12 +158,12 @@ struct sway_container {
/**
* Number of master views in auto layouts.
*/
- uint32_t nb_master;
+ size_t nb_master;
/**
* Number of slave groups (e.g. columns) in auto layouts.
*/
- uint32_t nb_slave_groups;
+ size_t nb_slave_groups;
};
enum visibility_mask {
diff --git a/include/sway/layout.h b/include/sway/layout.h
index a771a72e..8cc513d8 100644
--- a/include/sway/layout.h
+++ b/include/sway/layout.h
@@ -75,7 +75,5 @@ 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