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

@@ -222,13 +222,19 @@ 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