From c064f904d1af79a992f4f4e00b702d5f52936281 Mon Sep 17 00:00:00 2001 From: Ludovic Jacomme Date: Thu, 29 Jul 2004 09:16:01 +0000 Subject: [PATCH] - bug fix: under cygwin Dialog box button: freeze ! (No dead lock, but a very long timeout in XtDispatchEvent ...) --- alliance/src/dreal/src/GMX_event.c | 2 ++ alliance/src/dreal/src/GTB_dialog.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/alliance/src/dreal/src/GMX_event.c b/alliance/src/dreal/src/GMX_event.c index 2e3115d5..026eca8f 100644 --- a/alliance/src/dreal/src/GMX_event.c +++ b/alliance/src/dreal/src/GMX_event.c @@ -888,7 +888,9 @@ void CallbackExpose( MyWidget, ClientData, CallData ) DrealRefreshGraphicWindow( 0, 0, DrealGraphicDx, DrealGraphicDy ); DrealDisplayCursor(); + /* LUDO: Fed up to Click On IT ... DrealEnterPresentPanel(); + */ } else { diff --git a/alliance/src/dreal/src/GTB_dialog.c b/alliance/src/dreal/src/GTB_dialog.c index 26f2fb0f..536bb867 100644 --- a/alliance/src/dreal/src/GTB_dialog.c +++ b/alliance/src/dreal/src/GTB_dialog.c @@ -325,7 +325,9 @@ void DrealLimitedLoop( MyWidget ) if (WShell == DialogShell) { - XtDispatchEvent( &Event ); + XtDispatchEventToWidget( + XtWindowToWidget( AnyEvent->display, AnyEvent->window ), + &Event ); } break;