diff Mac/Python/macglue.c @ 3248:5e101ead1e69 legacy-trunk

Cosmetic change to event handling.
author Jack Jansen <jack.jansen@cwi.nl>
date Fri, 10 Nov 1995 14:53:00 +0000
parents fd50986f35e5
children 43c5e7a3fc1f
line wrap: on
line diff
--- a/Mac/Python/macglue.c	Fri Nov 10 14:51:26 1995 +0000
+++ b/Mac/Python/macglue.c	Fri Nov 10 14:53:00 1995 +0000
@@ -310,15 +310,23 @@
 {
 			
 #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__ */
 }