From 6fa119926ad7cc6142cd876dc5b8d24fd99ce181 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Sun, 26 Feb 2023 18:18:57 +0000 Subject: Log when the second buffer is created. --- src/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index d874745..dbfb718 100644 --- a/src/main.c +++ b/src/main.c @@ -97,7 +97,7 @@ static void zwlr_layer_surface_configure( log_debug("Layer surface configure with no width or height.\n"); return; } - log_debug("Layer surface configure, %d x %d.\n", width, height); + log_debug("Layer surface configure, %u x %u.\n", width, height); /* * Resize the main window. @@ -1542,11 +1542,13 @@ int main(int argc, char *argv[]) * possible after startup. */ wl_display_roundtrip(tofi.wl_display); + log_debug("Initialising second buffer.\n"); memcpy( cairo_image_surface_get_data(tofi.window.entry.cairo[1].surface), cairo_image_surface_get_data(tofi.window.entry.cairo[0].surface), tofi.window.entry.image.width * tofi.window.entry.image.height * sizeof(uint32_t) ); + log_debug("Second buffer initialised.\n"); /* We've just rendered, so we don't need to do it again right now. */ tofi.window.surface.redraw = false; -- cgit v1.2.3