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);