From: Michael Gernoth Date: Tue, 22 Jan 2008 21:42:11 +0000 (+0100) Subject: make double click work on OS X X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/commitdiff_plain/4f9f8b18b9f8bc841fc54c0d094ab13b9f834587?hp=965e2fe70e9b57b6555aa241f0077e95efa7ab7b make double click work on OS X --- diff --git a/src/tk/tkbind.c b/src/tk/tkbind.c index d83ca5e..14cad9f 100644 --- a/src/tk/tkbind.c +++ b/src/tk/tkbind.c @@ -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) {