diff options
Diffstat (limited to 'src/wayland-client.c')
| -rw-r--r-- | src/wayland-client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wayland-client.c b/src/wayland-client.c index c8bbe8f..939c17d 100644 --- a/src/wayland-client.c +++ b/src/wayland-client.c @@ -152,8 +152,9 @@ wl_proxy_create_for_id(struct wl_proxy *factory, proxy->object.interface = interface; proxy->object.implementation = NULL; - proxy->object.id = wl_map_insert_at(&display->objects, id, proxy); + proxy->object.id = id; proxy->display = display; + wl_map_insert_at(&display->objects, id, proxy); return proxy; } |
