diff options
author | fvogel <fvogelnew1@free.fr> | 2024-03-07 20:07:09 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2024-03-07 20:07:09 (GMT) |
commit | e4b3ca39ccd2cb9a69d0cc2dea8dc01f863a4c9c (patch) | |
tree | 0508c3d70cc8154094fa2979f44705d9e83c484d /generic/tkBind.c | |
parent | 4c672977fceafa18192e28a6df28b09bbcfc1677 (diff) | |
parent | bce717b7ed795488aa0ee68b92f8031e7cd49cb1 (diff) | |
download | tk-e4b3ca39ccd2cb9a69d0cc2dea8dc01f863a4c9c.zip tk-e4b3ca39ccd2cb9a69d0cc2dea8dc01f863a4c9c.tar.gz tk-e4b3ca39ccd2cb9a69d0cc2dea8dc01f863a4c9c.tar.bz2 |
Fix [47d4f29159]: Ignored binding scripts for events with detail field NotifyInferior. Patch from Erik Leunissen.
Diffstat (limited to 'generic/tkBind.c')
-rw-r--r-- | generic/tkBind.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/generic/tkBind.c b/generic/tkBind.c index a3baa51..4472848 100644 --- a/generic/tkBind.c +++ b/generic/tkBind.c @@ -2231,14 +2231,8 @@ Tk_BindEvent( curEvent = bindPtr->eventInfo + eventPtr->type; /* - * Ignore the event completely if it is an Enter, Leave, FocusIn, or - * FocusOut event with detail NotifyInferior. The reason for ignoring - * these events is that we don't want transitions between a window and its - * children to be visible to bindings on the parent: this would cause - * problems for mega-widgets, since the internal structure of a - * mega-widget isn't supposed to be visible to people watching the parent. - * - * Furthermore we have to compute current time, needed for "event generate". + * Compute current time needed for "event generate", + * and reset counters for Key and Button events. */ switch (eventPtr->type) { @@ -2248,15 +2242,6 @@ Tk_BindEvent( bindInfoPtr->lastCurrentTime = CurrentTimeInMilliSecs(); bindInfoPtr->lastEventTime = eventPtr->xcrossing.time; } - if (eventPtr->xcrossing.detail == NotifyInferior) { - return; - } - break; - case FocusIn: - case FocusOut: - if (eventPtr->xfocus.detail == NotifyInferior) { - return; - } break; case KeyPress: case KeyRelease: { |