diff options
-rw-r--r-- | clients/window.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clients/window.c b/clients/window.c index 073ce53..2540cc9 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; |