Log emitted events as well in debug mode
This commit is contained in:
+3
-1
@@ -374,7 +374,6 @@ wl_connection_vmarshal(struct wl_connection *connection,
|
|||||||
int i, count, fd, extra_size;
|
int i, count, fd, extra_size;
|
||||||
|
|
||||||
extra_size = wl_message_size_extra(message);
|
extra_size = wl_message_size_extra(message);
|
||||||
closure->message = message;
|
|
||||||
count = strlen(message->signature) + 2;
|
count = strlen(message->signature) + 2;
|
||||||
extra = (char *) closure->buffer;
|
extra = (char *) closure->buffer;
|
||||||
start = &closure->buffer[DIV_ROUNDUP(extra_size, sizeof *p)];
|
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;
|
size = (p - start) * sizeof *p;
|
||||||
start[0] = sender->id;
|
start[0] = sender->id;
|
||||||
start[1] = opcode | (size << 16);
|
start[1] = opcode | (size << 16);
|
||||||
|
|
||||||
closure->start = start;
|
closure->start = start;
|
||||||
|
closure->message = message;
|
||||||
|
closure->count = count;
|
||||||
|
|
||||||
return closure;
|
return closure;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,6 +93,12 @@ wl_client_post_event(struct wl_client *client, struct wl_object *sender,
|
|||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
||||||
wl_closure_send(closure, client->connection);
|
wl_closure_send(closure, client->connection);
|
||||||
|
|
||||||
|
if (wl_debug) {
|
||||||
|
fprintf(stderr, " -> ");
|
||||||
|
wl_closure_print(closure, sender);
|
||||||
|
}
|
||||||
|
|
||||||
wl_closure_destroy(closure);
|
wl_closure_destroy(closure);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user