Log emitted events as well in debug mode

dev
Kristian Høgsberg 14 years ago
parent 6bce89da78
commit acf82a36bb
  1. 4
      connection.c
  2. 6
      wayland-server.c

@ -374,7 +374,6 @@ wl_connection_vmarshal(struct wl_connection *connection,
int i, count, fd, extra_size;
extra_size = wl_message_size_extra(message);
closure->message = message;
count = strlen(message->signature) + 2;
extra = (char *) closure->buffer;
start = &closure->buffer[DIV_ROUNDUP(extra_size, sizeof *p)];
@ -467,7 +466,10 @@ wl_connection_vmarshal(struct wl_connection *connection,
size = (p - start) * sizeof *p;
start[0] = sender->id;
start[1] = opcode | (size << 16);
closure->start = start;
closure->message = message;
closure->count = count;
return closure;
}

@ -93,6 +93,12 @@ wl_client_post_event(struct wl_client *client, struct wl_object *sender,
va_end(ap);
wl_closure_send(closure, client->connection);
if (wl_debug) {
fprintf(stderr, " -> ");
wl_closure_print(closure, sender);
}
wl_closure_destroy(closure);
}

Loading…
Cancel
Save