diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2014-12-18 15:10:09 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2014-12-23 10:50:31 +1000 |
commit | b8e63b54d3be8b838ad9791c8aa4005d73f269eb (patch) | |
tree | dc8c73213e72988edadaa7c04aad94126362bca7 /tools/shared.c | |
parent | 3628f7016e3c457b0384549c3f4fe9299002f6a0 (diff) |
tools: move applying device configuration to shared lib
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools/shared.c')
-rw-r--r-- | tools/shared.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/shared.c b/tools/shared.c index f8ceb34..bd8fd11 100644 --- a/tools/shared.c +++ b/tools/shared.c @@ -222,3 +222,11 @@ tools_open_backend(struct tools_options *options, return li; } + +void +tools_device_apply_config(struct libinput_device *device, + struct tools_options *options) +{ + if (options->tapping != -1) + libinput_device_config_tap_set_enabled(device, options->tapping); +} |