From 38e976665d8a8b7c12bb0fc2ec96342f747332dd Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Fri, 10 Nov 1995 14:53:00 +0000 Subject: [PATCH] Cosmetic change to event handling. --- Mac/Python/macglue.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Mac/Python/macglue.c b/Mac/Python/macglue.c index 60064747343..2528e2538c8 100644 --- a/Mac/Python/macglue.c +++ b/Mac/Python/macglue.c @@ -310,15 +310,23 @@ PyMac_HandleEvent(evp) { #ifdef __MWERKS__ - /* If SIOUX wants it we're done */ - (void)SIOUXHandleOneEvent(evp); + { + int siouxdidit; + + /* If SIOUX wants it we're done */ + siouxdidit = SIOUXHandleOneEvent(evp); + if ( siouxdidit ) + return; + } #else /* Other compilers are just unlucky: we only weed out clicks in other applications */ if ( evp->what == mouseDown ) { WindowPtr wp; - if ( FindWindow(evp->where, &wp) == inSysWindow ) + if ( FindWindow(evp->where, &wp) == inSysWindow ) { SystemClick(evp, wp); + return; + } } #endif /* !__MWERKS__ */ }