display_iterate: Process only enabled event masks

(krh: Added warning for this unintended usage)
dev
Benjamin Franzke 14 years ago committed by Kristian Høgsberg
parent 0f62aed1a1
commit 6fea3dc5ce
  1. 7
      wayland/wayland-client.c

@ -494,6 +494,13 @@ wl_display_iterate(struct wl_display *display, uint32_t mask)
uint32_t p[2], object, opcode, size;
int len;
mask &= display->mask;
if (mask == 0) {
fprintf(stderr,
"wl_display_iterate called with unsolicited flags");
return;
}
len = wl_connection_data(display->connection, mask);
while (len > 0) {
if (len < sizeof p)

Loading…
Cancel
Save