From 55974dcac53021c7f690e25ac8bcfe1a9960aa8c Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 8 Jul 2015 15:03:06 +1000 Subject: Add a configuration interface for enabling/disabling disable-while-typing DWT can interfere with some applications where keyboard and touchpad use at the same time is common, e.g. games but also anything that requires a combination of frequent pointer motion and use of keyboard shortcuts. Expose a toggle to disable DWT where needed. https://bugs.freedesktop.org/show_bug.cgi?id=90624 Signed-off-by: Peter Hutterer Reviewed-by: Hans de Goede --- tools/libinput-list-devices.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tools/libinput-list-devices.c') diff --git a/tools/libinput-list-devices.c b/tools/libinput-list-devices.c index f9ce7e46..c156bf0b 100644 --- a/tools/libinput-list-devices.c +++ b/tools/libinput-list-devices.c @@ -172,6 +172,18 @@ click_defaults(struct libinput_device *device) return str; } +static const char * +dwt_default(struct libinput_device *device) +{ + if (!libinput_device_config_dwt_is_available(device)) + return "n/a"; + + if (libinput_device_config_dwt_get_default_enabled(device)) + return "enabled"; + else + return "disabled"; +} + static void print_device_notify(struct libinput_event *ev) { @@ -235,6 +247,8 @@ print_device_notify(struct libinput_event *ev) printf("Click methods: %s\n", str); free(str); + printf("Disable-w-typing: %s\n", dwt_default(dev)); + printf("\n"); } -- cgit v1.2.1