WindowRef windowRef;
windowRef = FrontWindow();
- if ( windowRef && !TkMacGetXWindow(windowRef) ) {
+ if ( !windowRef )
return 0;
- }
+ if ( TkMacGetXWindow(windowRef) )
+ return 1;
+ return 0;
}
/*
*----------------------------------------------------------------------
*/
while (needsUpdate || (GetEvQHdr()->qHead != NULL)) {
- /* Give Python command-. handling a chance */
+ /* Give Python command-. handling a chance */
PyMac_DoYield(0, 0);
GetGlobalMouse(¤tMouse);
found = 1;
}
- if ( !TkIsTheBoss() )
- found = 1;
/*
* Check for window events. We may receive a NULL event for
* various reasons. 1) the timer has expired, 2) a mouse moved