diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2015-07-08 15:03:06 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2015-07-24 08:49:23 +1000 |
commit | 55974dcac53021c7f690e25ac8bcfe1a9960aa8c (patch) | |
tree | 590e18c4d34af4befb1d3e1dc92e397a560109d2 /tools/libinput-list-devices.c | |
parent | 9727b703c38daf54961a68f89daf5a54ca38815e (diff) | |
download | libinput-55974dcac53021c7f690e25ac8bcfe1a9960aa8c.tar.gz |
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 <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'tools/libinput-list-devices.c')
-rw-r--r-- | tools/libinput-list-devices.c | 14 |
1 files changed, 14 insertions, 0 deletions
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"); } |