<div dir="auto"><div dir="auto">Hey, </div><div dir="auto"><br></div>okay, I'll make a new patch with updated weston.ini manual soon.<div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto">Jiayi</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Jan 27, 2017 6:59 AM, "Pekka Paalanen" <<a href="mailto:ppaalanen@gmail.com" target="_blank">ppaalanen@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, 22 Oct 2016 13:31:28 -0400<br>
Jiayi Zhao <<a href="mailto:jeff.no.zhao@gmail.com">jeff.no.zhao@gmail.com</a>> wrote:<br>
<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>
Hi,<br>
<br>
I suppose this is ok, but it should also update the manual page for<br>
weston.ini to mention this option.<br>
<br>
<br>
Thanks,<br>
pq<br>
</blockquote></div></div>