mirror of
https://github.com/python/cpython.git
synced 2024-12-01 11:15:56 +01:00
Apparently the code to forestall Tk eating events was too aggressive (Tk user input stopped working). Fixed (I hope:-).
This commit is contained in:
parent
53b809d673
commit
69f086cbb6
@ -94,9 +94,11 @@ TkIsTheBoss(void)
|
||||
WindowRef windowRef;
|
||||
|
||||
windowRef = FrontWindow();
|
||||
if ( windowRef && !TkMacGetXWindow(windowRef) ) {
|
||||
if ( !windowRef )
|
||||
return 0;
|
||||
}
|
||||
if ( TkMacGetXWindow(windowRef) )
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
/*
|
||||
*----------------------------------------------------------------------
|
||||
@ -209,7 +211,7 @@ HandleMacEvents(void)
|
||||
*/
|
||||
|
||||
while (needsUpdate || (GetEvQHdr()->qHead != NULL)) {
|
||||
/* Give Python command-. handling a chance */
|
||||
/* Give Python command-. handling a chance */
|
||||
PyMac_DoYield(0, 0);
|
||||
|
||||
GetGlobalMouse(¤tMouse);
|
||||
@ -347,8 +349,6 @@ Tcl_WaitForEvent(
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user