diff options
author | fvogel <fvogelnew1@free.fr> | 2024-03-15 02:00:31 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2024-03-15 02:00:31 (GMT) |
commit | b0e011f103229b421bc2b1c2d2f65e51bd4ebe87 (patch) | |
tree | a9d6545b42d52fc1cfe41cec85da65c8bed30ae5 /generic/tkCanvas.c | |
parent | d769a99306bdee4395fbfbb4a5d5992e64cf05eb (diff) | |
parent | 99731c885b94164b6957e5e8ea7d9c24121b4eda (diff) | |
download | tk-b0e011f103229b421bc2b1c2d2f65e51bd4ebe87.zip tk-b0e011f103229b421bc2b1c2d2f65e51bd4ebe87.tar.gz tk-b0e011f103229b421bc2b1c2d2f65e51bd4ebe87.tar.bz2 |
Complement to the fix for [47d4f29159]: Ignored binding scripts for events with detail field NotifyInferior.
Diffstat (limited to 'generic/tkCanvas.c')
-rw-r--r-- | generic/tkCanvas.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/generic/tkCanvas.c b/generic/tkCanvas.c index 34d6845..ef14f09 100644 --- a/generic/tkCanvas.c +++ b/generic/tkCanvas.c @@ -5275,9 +5275,17 @@ PickCurrentItem( event.type = LeaveNotify; /* - * If the event's detail happens to be NotifyInferior the binding - * mechanism will discard the event. To be consistent, always use - * NotifyAncestor. + * Behaviour before ticket #47d4f29159: + * If the event's detail happens to be NotifyInferior the binding + * mechanism will discard the event. To be consistent, always use + * NotifyAncestor. + * + * Behaviour after ticket #47d4f29159: + * The binding mechanism doesn't discard events with detail field + * NotifyInferior anymore. It would be best to base the detail + * field on the ancestry relationship between the old and new + * canvas items. For the time being, retain the choice from before + * ticket #47d4f29159, which doesn't harm. */ event.xcrossing.detail = NotifyAncestor; |