]> git.zerfleddert.de Git - micropolis/commitdiff
make double click work on OS X
authorMichael Gernoth <michael@gernoth.net>
Tue, 22 Jan 2008 21:42:11 +0000 (22:42 +0100)
committerMichael Gernoth <michael@gernoth.net>
Tue, 22 Jan 2008 21:42:11 +0000 (22:42 +0100)
src/tk/tkbind.c

index d83ca5e0c8c3dcfade5d415659133d725752d222..14cad9f722a207664218342b4b3cfd74caff3a45 100644 (file)
@@ -1609,9 +1609,6 @@ MatchPatterns(bindPtr, psPtr)
            if (ringCount <= 0) {
                goto nextSequence;
            }
-           if (eventPtr->xany.window != window) {
-               goto nextSequence;
-           }
            if (eventPtr->xany.type != patPtr->eventType) {
                /*
                 * If the event is a mouse motion, button release,
@@ -1624,11 +1621,16 @@ MatchPatterns(bindPtr, psPtr)
                        || (eventPtr->xany.type == ButtonRelease)
                        || (eventPtr->xany.type == KeyRelease)
                        || (eventPtr->xany.type == NoExpose)
+                       || (eventPtr->xany.type == EnterNotify)
+                       || (eventPtr->xany.type == LeaveNotify)
                        || (eventPtr->xany.type == GraphicsExpose)) {
                    goto nextEvent;
                }
                goto nextSequence;
            }
+           if (eventPtr->xany.window != window) {
+               goto nextSequence;
+           }
 
            flags = flagArray[eventPtr->type];
            if (flags & KEY_BUTTON_MOTION) {
Impressum, Datenschutz