Don't special case object ID 1 lookup

This commit is contained in:
Kristian Høgsberg 2011-08-26 21:39:33 -04:00
parent 2b6f3cd2b8
commit 990809c063

View File

@ -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);