From 01508ef31a97572d9d3d0652183ec84673088233 Mon Sep 17 00:00:00 2001 From: Window Maker Date: Sun, 24 May 2026 19:17:00 +0200 Subject: [PATCH] debug: trace commit_locked --- WINGs/wclient_wl.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/WINGs/wclient_wl.c b/WINGs/wclient_wl.c index 565a63c..59b99f2 100644 --- a/WINGs/wclient_wl.c +++ b/WINGs/wclient_wl.c @@ -397,8 +397,16 @@ static const struct xdg_toplevel_listener xdg_toplevel_listener = { static void wl_client_toplevel_commit_locked(WLClientToplevel *top) { - if (!top || !top->configured || !top->buf || !top->buf->wl_buf) + if (!top || !top->configured || !top->buf || !top->buf->wl_buf) { + wwarning("commit_locked: SKIP top=%p configured=%d buf=%p wl_buf=%p", + (void*)top, top ? top->configured : -1, + top ? (void*)top->buf : NULL, + (top && top->buf) ? (void*)top->buf->wl_buf : NULL); return; + } + wwarning("commit_locked: COMMIT top=%p surface=%p buf=%p (%dx%d)", + (void*)top, (void*)top->surface, (void*)top->buf, + top->buf->width, top->buf->height); wl_surface_attach(top->surface, top->buf->wl_buf, 0, 0); wl_surface_damage_buffer(top->surface, 0, 0, top->buf->width, top->buf->height);