properly count removed children widgets

This commit is contained in:
Lephenixnoir 2021-05-13 10:56:18 +02:00
parent a3e8606ab5
commit d6951295b0
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 1 additions and 0 deletions

View File

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