debug: check for unmapped children in scroll view
This commit is contained in:
parent
577e2d6c45
commit
53b23a582c
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue