mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Cosmetic change to event handling.
This commit is contained in:
parent
1e8557a9fe
commit
38e976665d
1 changed files with 11 additions and 3 deletions
|
@ -310,15 +310,23 @@ PyMac_HandleEvent(evp)
|
||||||
{
|
{
|
||||||
|
|
||||||
#ifdef __MWERKS__
|
#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
|
#else
|
||||||
/* Other compilers are just unlucky: we only weed out clicks in other applications */
|
/* Other compilers are just unlucky: we only weed out clicks in other applications */
|
||||||
if ( evp->what == mouseDown ) {
|
if ( evp->what == mouseDown ) {
|
||||||
WindowPtr wp;
|
WindowPtr wp;
|
||||||
|
|
||||||
if ( FindWindow(evp->where, &wp) == inSysWindow )
|
if ( FindWindow(evp->where, &wp) == inSysWindow ) {
|
||||||
SystemClick(evp, wp);
|
SystemClick(evp, wp);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif /* !__MWERKS__ */
|
#endif /* !__MWERKS__ */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue