combobox should close when the parent window is resized
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
IoI_xD 2026-04-23 14:50:11 -07:00
commit 47c2a74d74

View file

@ -183,12 +183,19 @@ static void func_handler(MwWidget handle, const char* name, void* out, va_list v
}
}
static void parent_resize(MwWidget handle) {
MwComboBox cb = handle->internal;
if(cb->opened) {
click(handle);
}
}
MwClassRec MwComboBoxClassRec = {
wcreate, /* create */
destroy, /* destroy */
draw, /* draw */
click, /* click */
NULL, /* parent_resize */
parent_resize, /* parent_resize */
prop_change, /* prop_change */
NULL, /* mouse_move */
MwForceRender2, /* mouse_up */