diff options
author | Evan Welsh <gf.3432@gmail.com> | 2017-05-23 13:38:00 +0000 |
---|---|---|
committer | Jonas Ã…dahl <jadahl@gmail.com> | 2017-05-24 11:56:54 +0800 |
commit | 76198e0b3b93c05de39536698758ac0485deea49 (patch) | |
tree | 5d489ed3761c985788ae33923cd6c114f468c02d /src/backends/meta-input-settings-private.h | |
parent | efc190789f745500bfa7bdd478a8738f91684211 (diff) | |
download | mutter-76198e0b3b93c05de39536698758ac0485deea49.tar.gz |
Implements disable-while-typing in mutter.
Disable-while-typing disables the touchpad while the user is typing.
This patch introduces the necessary backend code to implement the
org.gnome.desktop.peripherals.touchpad.disable-while-typing setting of
gsettings-desktop-schemas which was implemented in commit
4c5b1c1df399d6afaaccb237e299ccd1d5d29ddd and released as part of 3.24.
This is known as dwt in libinput.
This patch has been tested on X11 and Wayland.
https://bugzilla.gnome.org/show_bug.cgi?id=764852
Diffstat (limited to 'src/backends/meta-input-settings-private.h')
-rw-r--r-- | src/backends/meta-input-settings-private.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backends/meta-input-settings-private.h b/src/backends/meta-input-settings-private.h index 53a7b80fe..1a9ab5f2a 100644 --- a/src/backends/meta-input-settings-private.h +++ b/src/backends/meta-input-settings-private.h @@ -54,6 +54,9 @@ struct _MetaInputSettingsClass void (* set_tap_enabled) (MetaInputSettings *settings, ClutterInputDevice *device, gboolean enabled); + void (* set_disable_while_typing) (MetaInputSettings *settings, + ClutterInputDevice *device, + gboolean enabled); void (* set_invert_scroll) (MetaInputSettings *settings, ClutterInputDevice *device, gboolean inverted); @@ -106,7 +109,6 @@ struct _MetaInputSettingsClass ClutterInputDeviceTool *tool, GDesktopStylusButtonAction primary, GDesktopStylusButtonAction secondary); - gboolean (* has_two_finger_scroll) (MetaInputSettings *settings, ClutterInputDevice *device); }; |