summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvas.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2024-03-15 02:00:16 (GMT)
committerfvogel <fvogelnew1@free.fr>2024-03-15 02:00:16 (GMT)
commit99731c885b94164b6957e5e8ea7d9c24121b4eda (patch)
tree23bff9103ebdb0a68136da9caeb37ff7788c0fda /generic/tkCanvas.c
parentbce717b7ed795488aa0ee68b92f8031e7cd49cb1 (diff)
parentfe3c077e83e86f17c990af8770be23ed02bf41d0 (diff)
downloadtk-99731c885b94164b6957e5e8ea7d9c24121b4eda.zip
tk-99731c885b94164b6957e5e8ea7d9c24121b4eda.tar.gz
tk-99731c885b94164b6957e5e8ea7d9c24121b4eda.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.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/generic/tkCanvas.c b/generic/tkCanvas.c
index aaac122..ccd3cac 100644
--- a/generic/tkCanvas.c
+++ b/generic/tkCanvas.c
@@ -4963,9 +4963,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;