From d6951295b0e498fa3def5c2ea3dd098d99547b3f Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Thu, 13 May 2021 10:56:18 +0200 Subject: [PATCH] properly count removed children widgets --- src/jwidget.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jwidget.c b/src/jwidget.c index 645ebd7..5b5a6fc 100644 --- a/src/jwidget.c +++ b/src/jwidget.c @@ -227,6 +227,7 @@ void jwidget_remove_child(void *w0, void *child0) index = read; } } + w->child_count = write; /* Remove the parent from the child */ child->parent = NULL;