diff options
author | wil <william.barsse@gmail.com> | 2017-01-01 21:52:49 +0100 |
---|---|---|
committer | wil <william.barsse@gmail.com> | 2017-01-01 21:52:49 +0100 |
commit | 97f70987d70315c683fd1e16c731b396679f6b96 (patch) | |
tree | d8f9649c86010ed5e3c1f109e789af680aad717b /include | |
parent | a62048f15d9381e3040bd45965233e59a041eab7 (diff) | |
download | sway-97f70987d70315c683fd1e16c731b396679f6b96.tar.xz |
[fix] cleanups suggested by Sway community
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/container.h | 4 | ||||
-rw-r--r-- | include/sway/layout.h | 4 |
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 |