From e7d9edec279b1c1bbdb12c9011dfef6d5064700a Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Mon, 4 May 2026 12:47:24 +0900 Subject: [PATCH] bugfix --- src/core.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index 7248c62..5a542b3 100644 --- a/src/core.c +++ b/src/core.c @@ -1049,7 +1049,11 @@ void MwReparent(MwWidget handle, MwWidget new_parent) { MwDispatch(handle->parent, children_update); } - handle->top_step = 0; + if(new_parent == NULL){ + handle->top_step = 1; + }else{ + handle->top_step = 0; + } MwForceRender(handle); }