<p dir="ltr">The most recent patch is the one with natural_scroll in weston.ini<br>
I tried changing it to enable_natural_scroll, but it was giving me a hard time and wasnt working properly :/</p>
<p dir="ltr"> Jiayi</p>
<p dir="ltr">On Oct 23, 2016 5:51 PM, "Peter Hutterer" <<a href="mailto:peter.hutterer@who-t.net">peter.hutterer@who-t.net</a>> wrote:<br>
</p>
<blockquote><p dir="ltr">><br>
</p>
</blockquote>
<p dir="ltr">> sorry, I'm getting lost here, which one is the most recent patch now? there<br>
> are two labelled v2<br>
><br>
> Cheers,<br>
> Peter<br>
><br>
> On Sat, Oct 22, 2016 at 01:31:28PM -0400, Jiayi Zhao wrote:<br>
> > This adds support for enabling/disabling natural scrolling<br>
> > via a boolean in weston.ini:<br>
> ><br>
> > [libinput]<br>
> > natural_scroll=true<br>
> ><br>
> > CHANGES:<br>
> > - libinput_device_config_scroll_has_natural_scroll() is not longer compared to != 0<br>
> ><br>
> > Signed-off-by: Jiayi Zhao <<a href="mailto:jeff.no.zhao@gmail.com">jeff.no.zhao@gmail.com</a>><br>
> > ---<br>
> > compositor/main.c | 13 +++++++++++++<br>
> > <a href="http://weston.ini.in"> weston.ini.in</a> | 1 +<br>
> > 2 files changed, 14 insertions(+)<br>
> ><br>
> > diff --git a/compositor/main.c b/compositor/main.c<br>
> > index 080aa61..abfb55b 100644<br>
> > --- a/compositor/main.c<br>
> > +++ b/compositor/main.c<br>
> > @@ -1095,6 +1095,8 @@ configure_input_device(struct weston_compositor *compositor,<br>
> > struct weston_config *config = wet_get_config(compositor);<br>
> > int enable_tap;<br>
> > int enable_tap_default;<br>
> > + int natural_scroll;<br>
> > + int natural_scroll_default;<br>
> ><br>
> > s = weston_config_get_section(config,<br>
> > "libinput", NULL, NULL);<br>
> > @@ -1109,6 +1111,17 @@ configure_input_device(struct weston_compositor *compositor,<br>
> > libinput_device_config_tap_set_enabled(device,<br>
> > enable_tap);<br>
> > }<br>
> > +<br>
> > + if (libinput_device_config_scroll_has_natural_scroll(device)) {<br>
> > + natural_scroll_default =<br>
> > + libinput_device_config_scroll_get_default_natural_scroll_enabled(<br>
> > + device);<br>
> > + weston_config_section_get_bool(s, "natural_scroll",<br>
> > + &natural_scroll,<br>
> > + natural_scroll_default);<br>
> > + libinput_device_config_scroll_set_natural_scroll_enabled(device,<br>
> > + natural_scroll);<br>
> > + }<br>
> > }<br>
> ><br>
> > static void<br>
> > diff --git a/<a href="http://weston.ini.in">weston.ini.in</a> b/<a href="http://weston.ini.in">weston.ini.in</a><br>
> > index d837fb5..c7b8b98 100644<br>
> > --- a/<a href="http://weston.ini.in">weston.ini.in</a><br>
> > +++ b/<a href="http://weston.ini.in">weston.ini.in</a><br>
> > @@ -60,6 +60,7 @@ path=@libexecdir@/weston-keyboard<br>
> ><br>
> > #[libinput]<br>
> > #enable_tap=true<br>
> > +#natural_scroll=false<br>
> ><br>
> > #[touchpad]<br>
> > #constant_accel_factor = 50<br>
> > --<br>
> > 2.7.3<br>
> ><br>
> > _______________________________________________<br>
> > wayland-devel mailing list<br>
> ><a href="mailto:wayland-devel@lists.freedesktop.org"> wayland-devel@lists.freedesktop.org</a><br>
> ><a href="https://lists.freedesktop.org/mailman/listinfo/wayland-devel"> https://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
> ><br>
</p>