No subject


Tue Feb 14 08:13:04 PST 2012


<div>Yes, I was wondering why it only zoomed one input regardless. <br></di=
v><blockquote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0pt 0.8ex;borde=
r-left:1px solid rgb(204,204,204);padding-left:1ex">

<div><div class=3D"h5"><br>
&gt; +<br>
&gt; + =A0 =A0 output-&gt;zoom.active =3D 1;<br>
&gt; + =A0 =A0 output-&gt;zoom.level -=3D output-&gt;zoom.increment;<br>
&gt; + =A0 =A0 if (output-&gt;zoom.level &gt; 1.0)<br>
&gt; + =A0 =A0 =A0 =A0 =A0 =A0 output-&gt;zoom.level =3D 1.0;<br>
&gt; + =A0 =A0 if (output-&gt;zoom.level &lt;=3D output-&gt;zoom.increment)=
<br>
&gt; + =A0 =A0 =A0 =A0 =A0 =A0 output-&gt;zoom.level =3D output-&gt;zoom.in=
crement;<br>
&gt; +<br>
&gt; + =A0 =A0 weston_update_zoom(output, device-&gt;x, device-&gt;y);<br>
&gt; +}<br>
&gt; +<br>
&gt; +static void<br>
&gt; +zoom_out_binding(struct wl_input_device *device, uint32_t time,<br>
&gt; + =A0 =A0 =A0 =A0 =A0 =A0uint32_t key, uint32_t button, uint32_t state=
, void *data)<br>
&gt; +{<br>
&gt; + =A0 =A0 struct weston_input_device *wd =3D (struct weston_input_devi=
ce *) device;<br>
&gt; + =A0 =A0 struct weston_compositor *compositor =3D wd-&gt;compositor;<=
br>
&gt; + =A0 =A0 struct weston_output *output;<br>
&gt; + =A0 =A0 output =3D container_of(compositor-&gt;output_list.next,<br>
&gt; + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 struct weston_output, link);=
<br>
&gt; +<br>
&gt; + =A0 =A0 output-&gt;zoom.level +=3D output-&gt;zoom.increment;<br>
&gt; + =A0 =A0 if (output-&gt;zoom.level &gt; 1.0) {<br>
&gt; + =A0 =A0 =A0 =A0 =A0 =A0 output-&gt;zoom.active =3D 0;<br>
&gt; + =A0 =A0 =A0 =A0 =A0 =A0 output-&gt;zoom.level =3D 1.0;<br>
&gt; + =A0 =A0 }<br>
&gt; +<br>
&gt; + =A0 =A0 weston_update_zoom(output, device-&gt;x, device-&gt;y);<br>
&gt; +}<br>
&gt; +<br>
&gt; +static void<br>
&gt; =A0terminate_binding(struct wl_input_device *device, uint32_t time,<br=
>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 uint32_t key, uint32_t button, uint32_=
t state, void *data)<br>
&gt; =A0{<br>
&gt; @@ -1618,6 +1657,10 @@ shell_init(struct weston_compositor *ec)<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 mo=
ve_binding, shell);<br>
&gt; =A0 =A0 =A0 weston_compositor_add_binding(ec, 0, BTN_MIDDLE, MODIFIER_=
SUPER,<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 re=
size_binding, shell);<br>
&gt; + =A0 =A0 weston_compositor_add_binding(ec, KEY_UP, 0, MODIFIER_SUPER,=
<br>
&gt; + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 zoom=
_in_binding, shell);<br>
&gt; + =A0 =A0 weston_compositor_add_binding(ec, KEY_DOWN, 0, MODIFIER_SUPE=
R,<br>
&gt; + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 zoom=
_out_binding, shell);<br>
&gt; =A0 =A0 =A0 weston_compositor_add_binding(ec, KEY_BACKSPACE, 0,<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 MO=
DIFIER_CTRL | MODIFIER_ALT,<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 te=
rminate_binding, ec);<br>
<br>
</div></div>All my comments were just on the details.<br>
<br>
I&#39;ll leave commenting on the feature as a whole for krh.<br><br></block=
quote><div>Thanks for your input.<br><br><br><br>Cheers,<br><br>Scott <br><=
/div></div><br>

--000e0ce0d9dc09905304b8ef1fb9--


More information about the wayland-devel mailing list