diff options
-rw-r--r-- | backend/libinput/meson.build | 6 | ||||
-rw-r--r-- | include/backend/libinput.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/backend/libinput/meson.build b/backend/libinput/meson.build index 181eb04b..368ae0f9 100644 --- a/backend/libinput/meson.build +++ b/backend/libinput/meson.build @@ -29,7 +29,5 @@ features += { 'libinput-backend': true } wlr_deps += libinput # libinput hold gestures and high resolution scroll are available since 1.19.0 -add_project_arguments([ - '-DLIBINPUT_HAS_HOLD_GESTURES=@0@'.format(libinput.version().version_compare('>=1.19.0').to_int()), - '-DLIBINPUT_HAS_SCROLL_VALUE120=@0@'.format(libinput.version().version_compare('>=1.19.0').to_int()), -], language: 'c') +internal_config.set10('LIBINPUT_HAS_HOLD_GESTURES', libinput.version().version_compare('>=1.19.0')) +internal_config.set10('LIBINPUT_HAS_SCROLL_VALUE120', libinput.version().version_compare('>=1.19.0')) diff --git a/include/backend/libinput.h b/include/backend/libinput.h index 1ec94c2d..36c4794b 100644 --- a/include/backend/libinput.h +++ b/include/backend/libinput.h @@ -12,6 +12,8 @@ #include <wlr/types/wlr_tablet_tool.h> #include <wlr/types/wlr_touch.h> +#include "config.h" + struct wlr_libinput_backend { struct wlr_backend backend; |