From 4f9f8b18b9f8bc841fc54c0d094ab13b9f834587 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Tue, 22 Jan 2008 22:42:11 +0100 Subject: [PATCH 1/1] make double click work on OS X --- src/tk/tkbind.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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) { -- 2.39.5