From: Casey Dahlin Date: Mon, 18 Jul 2011 06:00:25 +0000 (-0400) Subject: Pass object ID not pointer when sending a global announce event X-Git-Tag: 0.85.0~100 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c86ba825c474bbbd9e95bcdbc2b8b577d24322fe;p=profile%2Fivi%2Fwayland.git Pass object ID not pointer when sending a global announce event When the type for the first argument of the global event changed from new_id to uint, wl_connection_vmarshal started expecting an integer argument rather than an object argument. As a result we were sending the client a chunk of pointer rather than a useful global identifier. --- diff --git a/wayland/wayland-server.c b/wayland/wayland-server.c index d4fdfc7..2019cb4 100644 --- a/wayland/wayland-server.c +++ b/wayland/wayland-server.c @@ -313,7 +313,7 @@ wl_client_post_global(struct wl_client *client, struct wl_object *object) wl_client_post_event(client, &client->display->object, WL_DISPLAY_GLOBAL, - object, + object->id, object->interface->name, object->interface->version); }