]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Cosmetic change to event handling.
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 10 Nov 1995 14:53:00 +0000 (14:53 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 10 Nov 1995 14:53:00 +0000 (14:53 +0000)
Mac/Python/macglue.c

index 6006474734341ab051edc3c184fe198de0a610a8..2528e2538c858162b2e43834870b382e6967af24 100644 (file)
@@ -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__ */
 }