This commit is contained in:
Nishi 2026-05-06 00:12:06 +09:00
commit 89911082ed
Signed by: nishi
GPG key ID: 27EF69B208EB9343
9 changed files with 160 additions and 18 deletions

View file

@ -15,6 +15,7 @@ static int wcreate(MwWidget handle) {
MwSetInteger(handle, MwNpadding, 0);
MwSetInteger(handle, MwNhasBorder, 0);
MwSetInteger(handle, MwNinverted, 1);
MwSetInteger(handle, MwNwaitLayout, 0);
b->layout = 0;
@ -116,7 +117,7 @@ static void children_prop_change(MwWidget handle, MwWidget child, const char* ke
static void tick(MwWidget handle) {
MwBox b = handle->internal;
if(b->layout) {
if(b->layout && !MwGetInteger(handle, MwNwaitLayout)) {
layout(handle);
b->layout = 0;