summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvas.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2024-03-15 02:00:31 (GMT)
committerfvogel <fvogelnew1@free.fr>2024-03-15 02:00:31 (GMT)
commitb0e011f103229b421bc2b1c2d2f65e51bd4ebe87 (patch)
treea9d6545b42d52fc1cfe41cec85da65c8bed30ae5 /generic/tkCanvas.c
parentd769a99306bdee4395fbfbb4a5d5992e64cf05eb (diff)
parent99731c885b94164b6957e5e8ea7d9c24121b4eda (diff)
downloadtk-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.c14
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;