From 990809c0637a15edbdf75753afdea537e057fd34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Fri, 26 Aug 2011 21:39:33 -0400 Subject: [PATCH] Don't special case object ID 1 lookup --- src/wayland-client.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/wayland-client.c b/src/wayland-client.c index ed21f045..de846984 100644 --- a/src/wayland-client.c +++ b/src/wayland-client.c @@ -410,10 +410,7 @@ handle_event(struct wl_display *display, const struct wl_message *message; wl_connection_copy(display->connection, p, size); - if (id == 1) - proxy = &display->proxy; - else - proxy = wl_map_lookup(&display->objects, id); + proxy = wl_map_lookup(&display->objects, id); if (proxy == NULL || proxy->object.implementation == NULL) { wl_connection_consume(display->connection, size);