mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dtinfo: improve MessageMgr to avoid unexpected behavior.
This commit is contained in:
parent
a16ba22f1a
commit
00c5ba3508
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue