window: Add a log handler for window.c clients

This way we can see what kind of error we get if we get an error.
Kristian Høgsberg 12 years ago
parent c08bc364fc
commit 2e43720743
  1. 8
      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;

Loading…
Cancel
Save