diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2023-06-29 14:12:54 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2023-07-03 12:36:33 +0000 |
| commit | a361d7917b311cad2def1ef42e740670cbddd7b1 (patch) | |
| tree | 76290bf85ab042bb72df5211631a01aebd8343cb /foot-features.h | |
| parent | render: move variables inside #ifdef, as they’re not used outside of it (diff) | |
main/client: add a version feature flag for cursor-shape
Diffstat (limited to 'foot-features.h')
| -rw-r--r-- | foot-features.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/foot-features.h b/foot-features.h index 77923aaf..f8043c12 100644 --- a/foot-features.h +++ b/foot-features.h @@ -46,3 +46,12 @@ static inline bool feature_fractional_scaling(void) return false; #endif } + +static inline bool feature_cursor_shape(void) +{ +#if defined(HAVE_CURSOR_SHAPE) + return true; +#else + return false; +#endif +} |
