summaryrefslogtreecommitdiffstats
path: root/library/systray.tcl
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2020-11-18 20:54:33 (GMT)
committerfvogel <fvogelnew1@free.fr>2020-11-18 20:54:33 (GMT)
commit119ebaf7c2c3b50b40038d411d685e1ab92d06e4 (patch)
tree251607f051aed5506c764b595065158cf184fd9c /library/systray.tcl
parent58c87880d7fa50c530ac9c9407e4d18734ebb43b (diff)
downloadtk-119ebaf7c2c3b50b40038d411d685e1ab92d06e4.zip
tk-119ebaf7c2c3b50b40038d411d685e1ab92d06e4.tar.gz
tk-119ebaf7c2c3b50b40038d411d685e1ab92d06e4.tar.bz2
Add explanatory comment
Diffstat (limited to 'library/systray.tcl')
-rw-r--r--library/systray.tcl3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/systray.tcl b/library/systray.tcl
index 846ee02..01108cf 100644
--- a/library/systray.tcl
+++ b/library/systray.tcl
@@ -46,6 +46,9 @@ namespace eval ::tk::systray {
proc _win_callback {msg} {
variable _current
+ # The API at the Tk level does not feature bindings to double clicks. Whatever
+ # the speed the user clicks with, he expects the single click binding to fire.
+ # Therefore we need to bind to both WM_*BUTTONDOWN and to WM_*BUTTONDBLCLK.
switch -exact -- $msg {
WM_LBUTTONDOWN - WM_LBUTTONDBLCLK {
uplevel #0 [dict get $_current -button1]