diff options
author | fvogel <fvogelnew1@free.fr> | 2024-02-25 20:27:08 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2024-02-25 20:27:08 (GMT) |
commit | 9d6e73267dd9914290919d37a08ed135a10c3462 (patch) | |
tree | 885b8fe4e9ef52e3dd7f9eae50a19aa6c9a4abbe /generic/tkBind.c | |
parent | f8e0440984fd76b924ce69b6b049d4333088933b (diff) | |
download | tk-9d6e73267dd9914290919d37a08ed135a10c3462.zip tk-9d6e73267dd9914290919d37a08ed135a10c3462.tar.gz tk-9d6e73267dd9914290919d37a08ed135a10c3462.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 0e46a74..5a42826 100644 --- a/generic/tkBind.c +++ b/generic/tkBind.c @@ -2198,14 +2198,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) { @@ -2215,15 +2209,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: { |