forked from pyrite-dev/milsko
combobox should close when the parent window is resized
This commit is contained in:
parent
4d6d459920
commit
47c2a74d74
1 changed files with 8 additions and 1 deletions
|
|
@ -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 = {
|
MwClassRec MwComboBoxClassRec = {
|
||||||
wcreate, /* create */
|
wcreate, /* create */
|
||||||
destroy, /* destroy */
|
destroy, /* destroy */
|
||||||
draw, /* draw */
|
draw, /* draw */
|
||||||
click, /* click */
|
click, /* click */
|
||||||
NULL, /* parent_resize */
|
parent_resize, /* parent_resize */
|
||||||
prop_change, /* prop_change */
|
prop_change, /* prop_change */
|
||||||
NULL, /* mouse_move */
|
NULL, /* mouse_move */
|
||||||
MwForceRender2, /* mouse_up */
|
MwForceRender2, /* mouse_up */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue