summaryrefslogtreecommitdiff
path: root/src/compositor.c
diff options
context:
space:
mode:
authorQuanxian Wang <quanxian.wang@intel.com>2014-03-14 09:16:25 +0800
committerKristian Høgsberg <krh@bitplanet.net>2014-04-01 16:46:40 -0700
commitb2c86363b83a00a60d1e3ec217dfd03ab55ea189 (patch)
tree161c2ec94b1381411993a159256bf1bb3c23e5f9 /src/compositor.c
parentfe9671e30edb9dc5fec35a4f22c5f3eba4c487ab (diff)
downloadweston-b2c86363b83a00a60d1e3ec217dfd03ab55ea189.tar.gz
weston: Send done event with version 2 of wl_output
With protocol of wl_output version 2, after the output change, it should send done event to all clients bound to it. Signed-off-by: Quanxian Wang <quanxian.wang@intel.com>
Diffstat (limited to 'src/compositor.c')
-rw-r--r--src/compositor.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/compositor.c b/src/compositor.c
index 7c29d51a..98a4f6f2 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