- bug fix: under cygwin Dialog box button: freeze !

(No dead lock, but a very long timeout in XtDispatchEvent ...)
This commit is contained in:
Ludovic Jacomme 2004-07-29 09:56:23 +00:00
parent c064f904d1
commit b4b56757d7
2 changed files with 6 additions and 2 deletions

View File

@ -1044,7 +1044,9 @@ void CallbackExpose( MyWidget, ClientData, CallData )
GraalRefreshGraphicWindow( 0, 0, GraalGraphicDx, GraalGraphicDy );
GraalDisplayCursor();
/* LUDO: Fed up to Click On IT ...
GraalEnterPresentPanel();
*/
}
else
{

View File

@ -325,9 +325,11 @@ void GraalLimitedLoop( MyWidget )
case ButtonPress :
case ButtonRelease :
if ( WShell == DialogShell )
if (WShell == DialogShell)
{
XtDispatchEvent( &Event );
XtDispatchEventToWidget(
XtWindowToWidget( AnyEvent->display, AnyEvent->window ),
&Event );
}
break;