diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2011-08-26 21:39:33 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2011-08-27 12:06:11 -0400 |
commit | 990809c0637a15edbdf75753afdea537e057fd34 (patch) | |
tree | f77df5ec0cbabdbbdd85f2402a580279a6f9cfa5 | |
parent | 2b6f3cd2b85052dc5127d22ebb2269ab3f69bf9a (diff) |
Don't special case object ID 1 lookup
-rw-r--r-- | src/wayland-client.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/wayland-client.c b/src/wayland-client.c index ed21f04..de84698 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); |