Skip to content

Commit 3c2e38b

Browse files
committed
upstream: ipc: add LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM entry
1 parent 0ca4062 commit 3c2e38b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

meson.build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ conf_data.set10('HAVE_LIBSYSTEMD', sdbus.found() and sdbus.name() == 'libsystemd
116116
conf_data.set10('HAVE_LIBELOGIND', sdbus.found() and sdbus.name() == 'libelogind')
117117
conf_data.set10('HAVE_BASU', sdbus.found() and sdbus.name() == 'basu')
118118
conf_data.set10('HAVE_TRAY', have_tray)
119+
conf_data.set10('HAVE_LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM', cc.has_header_symbol(
120+
'libinput.h',
121+
'LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM',
122+
dependencies: libinput,
123+
))
119124

120125
scdoc = dependency('scdoc', version: '>=1.9.2', native: true, required: get_option('man-pages'))
121126
if scdoc.found()

sway/ipc-json.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,11 @@ static json_object *describe_libinput_device(struct libinput_device *device) {
964964
case LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE:
965965
accel_profile = "adaptive";
966966
break;
967+
#if HAVE_LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM
968+
case LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM:
969+
accel_profile = "custom";
970+
break;
971+
#endif
967972
}
968973
json_object_object_add(object, "accel_profile",
969974
json_object_new_string(accel_profile));

0 commit comments

Comments
 (0)