diff options
-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); |