mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
Log emitted events as well in debug mode
This commit is contained in:
parent
6bce89da78
commit
acf82a36bb
2 changed files with 9 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue