]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Apparently the code to forestall Tk eating events was too aggressive (Tk user input...
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 26 Apr 2001 13:22:33 +0000 (13:22 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 26 Apr 2001 13:22:33 +0000 (13:22 +0000)
Mac/tclmods/tclMacNotify.c

index 3d2695cf01095425a856ef706292b60f163e73b6..d8737ae01d1f1cc9b8b2a9b4da45986ffd466570 100644 (file)
@@ -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(&currentMouse);
@@ -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