dtinfo: improve MessageMgr to avoid unexpected behavior.
This commit is contained in:
@@ -222,13 +222,19 @@ MessageMgr::show_it(Widget dialog)
|
|||||||
|
|
||||||
f_popped_up = True;
|
f_popped_up = True;
|
||||||
f_pressed_ok = False;
|
f_pressed_ok = False;
|
||||||
|
|
||||||
|
Boolean sensitive = XtIsSensitive(shell);
|
||||||
|
|
||||||
|
XtSetSensitive(shell, False);
|
||||||
|
|
||||||
XEvent event;
|
XEvent event;
|
||||||
while(f_popped_up)
|
while(f_popped_up)
|
||||||
{
|
{
|
||||||
XtAppNextEvent (window_system().app_context(), &event);
|
XtAppNextEvent (window_system().app_context(), &event);
|
||||||
XtDispatchEvent (&event);
|
XtDispatchEvent (&event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
XtSetSensitive(shell, sensitive);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user