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>
> +<br>
> + =A0 =A0 output->zoom.active =3D 1;<br>
> + =A0 =A0 output->zoom.level -=3D output->zoom.increment;<br>
> + =A0 =A0 if (output->zoom.level > 1.0)<br>
> + =A0 =A0 =A0 =A0 =A0 =A0 output->zoom.level =3D 1.0;<br>
> + =A0 =A0 if (output->zoom.level <=3D output->zoom.increment)=
<br>
> + =A0 =A0 =A0 =A0 =A0 =A0 output->zoom.level =3D output->zoom.in=
crement;<br>
> +<br>
> + =A0 =A0 weston_update_zoom(output, device->x, device->y);<br>
> +}<br>
> +<br>
> +static void<br>
> +zoom_out_binding(struct wl_input_device *device, uint32_t time,<br>
> + =A0 =A0 =A0 =A0 =A0 =A0uint32_t key, uint32_t button, uint32_t state=
, void *data)<br>
> +{<br>
> + =A0 =A0 struct weston_input_device *wd =3D (struct weston_input_devi=
ce *) device;<br>
> + =A0 =A0 struct weston_compositor *compositor =3D wd->compositor;<=
br>
> + =A0 =A0 struct weston_output *output;<br>
> + =A0 =A0 output =3D container_of(compositor->output_list.next,<br>
> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 struct weston_output, link);=
<br>
> +<br>
> + =A0 =A0 output->zoom.level +=3D output->zoom.increment;<br>
> + =A0 =A0 if (output->zoom.level > 1.0) {<br>
> + =A0 =A0 =A0 =A0 =A0 =A0 output->zoom.active =3D 0;<br>
> + =A0 =A0 =A0 =A0 =A0 =A0 output->zoom.level =3D 1.0;<br>
> + =A0 =A0 }<br>
> +<br>
> + =A0 =A0 weston_update_zoom(output, device->x, device->y);<br>
> +}<br>
> +<br>
> +static void<br>
> =A0terminate_binding(struct wl_input_device *device, uint32_t time,<br=
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 uint32_t key, uint32_t button, uint32_=
t state, void *data)<br>
> =A0{<br>
> @@ -1618,6 +1657,10 @@ shell_init(struct weston_compositor *ec)<br>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 mo=
ve_binding, shell);<br>
> =A0 =A0 =A0 weston_compositor_add_binding(ec, 0, BTN_MIDDLE, MODIFIER_=
SUPER,<br>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 re=
size_binding, shell);<br>
> + =A0 =A0 weston_compositor_add_binding(ec, KEY_UP, 0, MODIFIER_SUPER,=
<br>
> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 zoom=
_in_binding, shell);<br>
> + =A0 =A0 weston_compositor_add_binding(ec, KEY_DOWN, 0, MODIFIER_SUPE=
R,<br>
> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 zoom=
_out_binding, shell);<br>
> =A0 =A0 =A0 weston_compositor_add_binding(ec, KEY_BACKSPACE, 0,<br>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 MO=
DIFIER_CTRL | MODIFIER_ALT,<br>
> =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'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