diff options
author | Casey Dahlin <cdahlin@redhat.com> | 2011-07-18 02:00:25 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2011-07-18 13:14:07 -0400 |
commit | c86ba825c474bbbd9e95bcdbc2b8b577d24322fe (patch) | |
tree | 38d7065b69ebf491d3cff6728e42995ae7c5e6e3 | |
parent | a8db57befa3263c6de24fd9762a4aec3b564d4d3 (diff) |
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.
-rw-r--r-- | wayland/wayland-server.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |