[PATCH libinput v2 06/11] touchpad: s/config/config_natural/
Hans de Goede
hdegoede at redhat.com
Mon Nov 10 02:59:17 PST 2014
To avoid confusion with scroll mode configuration.
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
src/evdev-mt-touchpad.c | 10 +++++-----
src/evdev-mt-touchpad.h | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
index 3d8f414..fc09e92 100644
--- a/src/evdev-mt-touchpad.c
+++ b/src/evdev-mt-touchpad.c
@@ -949,12 +949,12 @@ static int
tp_init_scroll(struct tp_dispatch *tp)
{
- tp->scroll.config.has = tp_scroll_config_natural_has;
- tp->scroll.config.set_enabled = tp_scroll_config_natural_set;
- tp->scroll.config.get_enabled = tp_scroll_config_natural_get;
- tp->scroll.config.get_default_enabled = tp_scroll_config_natural_get_default;
+ tp->scroll.config_natural.has = tp_scroll_config_natural_has;
+ tp->scroll.config_natural.set_enabled = tp_scroll_config_natural_set;
+ tp->scroll.config_natural.get_enabled = tp_scroll_config_natural_get;
+ tp->scroll.config_natural.get_default_enabled = tp_scroll_config_natural_get_default;
tp->scroll.natural_scrolling_enabled = false;
- tp->device->base.config.natural_scroll = &tp->scroll.config;
+ tp->device->base.config.natural_scroll = &tp->scroll.config_natural;
return 0;
}
diff --git a/src/evdev-mt-touchpad.h b/src/evdev-mt-touchpad.h
index 91f6e4a..baa51a3 100644
--- a/src/evdev-mt-touchpad.h
+++ b/src/evdev-mt-touchpad.h
@@ -202,7 +202,7 @@ struct tp_dispatch {
} buttons; /* physical buttons */
struct {
- struct libinput_device_config_natural_scroll config;
+ struct libinput_device_config_natural_scroll config_natural;
bool natural_scrolling_enabled;
} scroll;
--
2.1.0
More information about the wayland-devel
mailing list