<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>
<div class="gmail_extra"><br><div class="gmail_quote">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 type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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_<wbr>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" rel="noreferrer" target="_blank">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(<wbr>config,<br>
>                                     "libinput", NULL, NULL);<br>
> @@ -1109,6 +1111,17 @@ configure_input_device(struct weston_compositor *compositor,<br>
>               libinput_device_config_tap_<wbr>set_enabled(device,<br>
>                                                      enable_tap);<br>
>       }<br>
> +<br>
> +     if (libinput_device_config_<wbr>scroll_has_natural_scroll(<wbr>device)) {<br>
> +             natural_scroll_default =<br>
> +                     libinput_device_config_scroll_<wbr>get_default_natural_scroll_<wbr>enabled(<br>
> +                             device);<br>
> +             weston_config_section_get_<wbr>bool(s, "natural_scroll",<br>
> +                                            &natural_scroll,<br>
> +                                            natural_scroll_default);<br>
> +             libinput_device_config_scroll_<wbr>set_natural_scroll_enabled(<wbr>device,<br>
> +                                                    natural_scroll);<br>
> +     }<br>
>  }<br>
><br>
>  static void<br>
> diff --git a/<a href="http://weston.ini.in" rel="noreferrer" target="_blank">weston.ini.in</a> b/<a href="http://weston.ini.in" rel="noreferrer" target="_blank">weston.ini.in</a><br>
> index d837fb5..c7b8b98 100644<br>
> --- a/<a href="http://weston.ini.in" rel="noreferrer" target="_blank">weston.ini.in</a><br>
> +++ b/<a href="http://weston.ini.in" rel="noreferrer" target="_blank">weston.ini.in</a><br>
> @@ -60,6 +60,7 @@ path=@libexecdir@/weston-<wbr>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>
> ______________________________<wbr>_________________<br>
> wayland-devel mailing list<br>
> <a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.<wbr>freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/wayland-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/wayland-devel</a><br>
><br>
</blockquote></div></div>