Always consume message, even if no proxy was found

Doh.
dev
Kristian Høgsberg 14 years ago
parent 225a176882
commit ef613fbf83
  1. 20
      wayland-client.c

@ -347,17 +347,15 @@ handle_event(struct wl_display *display,
else else
proxy = wl_hash_table_lookup(display->objects, id); proxy = wl_hash_table_lookup(display->objects, id);
if (proxy == NULL) if (proxy != NULL)
return; wl_list_for_each(listener, &proxy->listener_list, link)
wl_connection_demarshal(display->connection,
wl_list_for_each(listener, &proxy->listener_list, link) size,
wl_connection_demarshal(display->connection, display->objects,
size, listener->implementation[opcode],
display->objects, listener->data,
listener->implementation[opcode], &proxy->base,
listener->data, &proxy->base.interface->events[opcode]);
&proxy->base,
&proxy->base.interface->events[opcode]);
wl_connection_consume(display->connection, size); wl_connection_consume(display->connection, size);
} }

Loading…
Cancel
Save