diff options
author | dkf <dkf@noemail.net> | 2008-12-28 22:59:47 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2008-12-28 22:59:47 (GMT) |
commit | e1f4e434397a66223cf6265b4b0a134128c6c65f (patch) | |
tree | 7cd3c101d33a8fda6d4de37149c484975c458fd3 /generic | |
parent | 369b80f8e5b97390dac2e16f91477d2c167cbd07 (diff) | |
download | tk-e1f4e434397a66223cf6265b4b0a134128c6c65f.zip tk-e1f4e434397a66223cf6265b4b0a134128c6c65f.tar.gz tk-e1f4e434397a66223cf6265b4b0a134128c6c65f.tar.bz2 |
TIP#171 implementation - sanity for <MouseWheel> event handling!
FossilOrigin-Name: da1b92466b00755b637abcefff167817f0240a69
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkEvent.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/generic/tkEvent.c b/generic/tkEvent.c index e3f925d..13e1304 100644 --- a/generic/tkEvent.c +++ b/generic/tkEvent.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkEvent.c,v 1.37 2008/11/08 18:44:39 dkf Exp $ + * RCS: @(#) $Id: tkEvent.c,v 1.38 2008/12/28 22:59:47 dkf Exp $ */ #include "tkInt.h" @@ -247,16 +247,10 @@ InvokeFocusHandlers( } /* - * MouseWheel events are not focus specific on Mac OS X. + * Only key-related events are directed according to the focus. */ -#ifdef MAC_OSX_TK -#define FOCUS_DIRECTED_EVENT_MASK (KeyPressMask|KeyReleaseMask) -#else -#define FOCUS_DIRECTED_EVENT_MASK (KeyPressMask|KeyReleaseMask|MouseWheelMask) -#endif - - if (mask & FOCUS_DIRECTED_EVENT_MASK) { + if (mask & (KeyPressMask|KeyReleaseMask)) { (*winPtrPtr)->dispPtr->lastEventTime = eventPtr->xkey.time; *winPtrPtr = TkFocusKeyEvent(*winPtrPtr, eventPtr); if (*winPtrPtr == NULL) { |