From 264ef0c261db998ada651984136776fd336c4a72 Mon Sep 17 00:00:00 2001 From: Timidger Date: Mon, 15 Jan 2018 22:51:00 -0500 Subject: Fixed logging for examples --- examples/screenshot.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples/screenshot.c') diff --git a/examples/screenshot.c b/examples/screenshot.c index 77652805..441d8684 100644 --- a/examples/screenshot.c +++ b/examples/screenshot.c @@ -36,6 +36,7 @@ #include #include #include "util/os-compatibility.h" +#include static struct wl_shm *shm = NULL; static struct orbital_screenshooter *screenshooter = NULL; @@ -242,6 +243,7 @@ static int set_buffer_size(int *width, int *height) { } int main(int argc, char *argv[]) { + wlr_log_init(L_DEBUG, NULL); struct wl_display * display = wl_display_connect(NULL); if (display == NULL) { fprintf(stderr, "failed to create display: %m\n"); -- cgit v1.2.3