[PATCH] weston: Send done event with version 2 of wl_output
Bryce W. Harrington
b.harrington at samsung.com
Thu Mar 13 19:19:24 PDT 2014
On Fri, Mar 14, 2014 at 09:16:25AM +0800, Quanxian Wang wrote:
> With protocol of wl_output version 2, after the output change,
> it should send done event to all clients bount with it.
bound?
>
> Signed-off-by: Quanxian Wang <quanxian.wang at intel.com>
> ---
> src/compositor.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/src/compositor.c b/src/compositor.c
> index 7c29d51..98a4f6f 100644
> --- a/src/compositor.c
> +++ b/src/compositor.c
> @@ -3245,7 +3245,7 @@ weston_output_move(struct weston_output *output, int x, int y)
> wl_signal_emit(&output->compositor->output_moved_signal, output);
>
> /* Notify clients of the change for output position. */
> - wl_resource_for_each(resource, &output->resource_list)
> + wl_resource_for_each(resource, &output->resource_list) {
> wl_output_send_geometry(resource,
> output->x,
> output->y,
> @@ -3255,6 +3255,10 @@ weston_output_move(struct weston_output *output, int x, int y)
> output->make,
> output->model,
> output->transform);
> +
> + if (wl_resource_get_version(resource) >= 2)
> + wl_output_send_done(resource);
> + }
> }
>
> WL_EXPORT void
> --
> 1.8.1.2
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
More information about the wayland-devel
mailing list