summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wayland/wayland-server.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/wayland/wayland-server.c b/wayland/wayland-server.c
index a8fb15f..082a6a1 100644
--- a/wayland/wayland-server.c
+++ b/wayland/wayland-server.c
@@ -244,11 +244,7 @@ wl_client_create(struct wl_display *display, int fd)
wl_display_post_range(display, client);
wl_list_for_each(global, &display->global_list, link)
- wl_client_post_event(client, &client->display->object,
- WL_DISPLAY_GLOBAL,
- global->object,
- global->object->interface->name,
- global->object->interface->version);
+ wl_client_post_global(client, global->object);
return client;
}