summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2011-04-14 16:29:59 -0400
committerKristian Høgsberg <krh@bitplanet.net>2011-04-18 10:24:50 -0400
commit7e4f44e2ba3e0e58c0adb910687c9a334e84b243 (patch)
tree4d7a24baddf642819fe8c27e9e06226b64d42cac
parent320a5634cf7060b5db22a0519b0ddc532894eb3b (diff)
Use wl_client_post_global() for connect events
-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;
}