From 53b23a582cb2a44edd76f015ecfc17b86390b582 Mon Sep 17 00:00:00 2001 From: Window Maker Date: Sun, 24 May 2026 17:13:26 +0200 Subject: [PATCH] debug: check for unmapped children in scroll view --- WINGs/wview_wl.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/WINGs/wview_wl.c b/WINGs/wview_wl.c index dbf3994..9d887b9 100644 --- a/WINGs/wview_wl.c +++ b/WINGs/wview_wl.c @@ -443,18 +443,19 @@ static void wl_redisplay(void *vctx, W_View *view) /* Re-composite all mapped children into this view's backing */ W_View *child = view->childrenList; - int _childcount = 0; while (child) { W_View *next = child->nextSister; - _childcount++; if (child->flags.mapped && child->flags.realized && !child->flags.alreadyDead) { wl_redisplay(vctx, child); + } else if (child->flags.realized && !child->flags.mapped) { + /* Debug: find unmapped children that should be mapped */ + if (view->size.width >= 400 && view->size.height > 50 && view->size.height < 100) + wwarning("wl_redisplay: UNMAPPED child %p in view %p (%dx%d) child_size=%dx%d pos=%d,%d", + (void*)child, (void*)view, view->size.width, view->size.height, + child->size.width, child->size.height, child->pos.x, child->pos.y); } child = next; } - if (_childcount > 2 && view->size.height > 50 && view->size.height < 100) - wwarning("wl_redisplay: view %p size=%dx%d children=%d", - (void*)view, view->size.width, view->size.height, _childcount); /* Composite this view's backing into its parent's backing */ if (view->parent) {