diff --git a/clients/window.c b/clients/window.c index 073ce533..2540cc9a 100644 --- a/clients/window.c +++ b/clients/window.c @@ -4383,11 +4383,19 @@ handle_display_data(struct task *task, uint32_t events) } } +static void +log_handler(const char *format, va_list args) +{ + vfprintf(stderr, format, args); +} + struct display * display_create(int *argc, char *argv[]) { struct display *d; + wl_log_set_handler_client(log_handler); + d = malloc(sizeof *d); if (d == NULL) return NULL;