summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-11-10 14:53:00 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-11-10 14:53:00 (GMT)
commit38e976665d8a8b7c12bb0fc2ec96342f747332dd (patch)
tree69265162f9d66975beca255c3acce748fecb2896 /Mac
parent1e8557a9fe1267dedf57322abb1bf3deab53fd3f (diff)
downloadcpython-38e976665d8a8b7c12bb0fc2ec96342f747332dd.zip
cpython-38e976665d8a8b7c12bb0fc2ec96342f747332dd.tar.gz
cpython-38e976665d8a8b7c12bb0fc2ec96342f747332dd.tar.bz2
Cosmetic change to event handling.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Python/macglue.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/Mac/Python/macglue.c b/Mac/Python/macglue.c
index 6006474..2528e25 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__ */
}