debug: trace commit_locked

This commit is contained in:
Window Maker 2026-05-24 19:17:00 +02:00
parent eb93d30fd9
commit 01508ef31a
1 changed files with 9 additions and 1 deletions

View File

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