1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 11:42:21 +00:00

dtinfo: improve MessageMgr to avoid unexpected behavior.

This commit is contained in:
Liang Chang 2021-11-24 05:41:17 +08:00
parent a16ba22f1a
commit 00c5ba3508

View file

@ -223,12 +223,18 @@ MessageMgr::show_it(Widget dialog)
f_popped_up = True;
f_pressed_ok = False;
Boolean sensitive = XtIsSensitive(shell);
XtSetSensitive(shell, False);
XEvent event;
while(f_popped_up)
{
XtAppNextEvent (window_system().app_context(), &event);
XtDispatchEvent (&event);
}
XtSetSensitive(shell, sensitive);
}
void