From a4a40618adb287d6ebebf099ca4d64f39b7f7770 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 25 Nov 2022 18:10:42 +0100 Subject: [PATCH] backend/libinput: use internal_config Removes project arguments. --- backend/libinput/meson.build | 6 ++---- 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 #include +#include "config.h" + struct wlr_libinput_backend { struct wlr_backend backend;