From ef613fbf830bd5aee50151d43d9b9e77d6eb50f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Tue, 17 Aug 2010 13:50:06 -0400 Subject: [PATCH] Always consume message, even if no proxy was found Doh. --- wayland-client.c | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/wayland-client.c b/wayland-client.c index a3617470..44358681 100644 --- a/wayland-client.c +++ b/wayland-client.c @@ -347,17 +347,15 @@ handle_event(struct wl_display *display, else proxy = wl_hash_table_lookup(display->objects, id); - if (proxy == NULL) - return; - - wl_list_for_each(listener, &proxy->listener_list, link) - wl_connection_demarshal(display->connection, - size, - display->objects, - listener->implementation[opcode], - listener->data, - &proxy->base, - &proxy->base.interface->events[opcode]); + if (proxy != NULL) + wl_list_for_each(listener, &proxy->listener_list, link) + wl_connection_demarshal(display->connection, + size, + display->objects, + listener->implementation[opcode], + listener->data, + &proxy->base, + &proxy->base.interface->events[opcode]); wl_connection_consume(display->connection, size); }