diff options
author | fvogel <fvogelnew1@free.fr> | 2020-11-18 20:54:33 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2020-11-18 20:54:33 (GMT) |
commit | 119ebaf7c2c3b50b40038d411d685e1ab92d06e4 (patch) | |
tree | 251607f051aed5506c764b595065158cf184fd9c /library/systray.tcl | |
parent | 58c87880d7fa50c530ac9c9407e4d18734ebb43b (diff) | |
download | tk-119ebaf7c2c3b50b40038d411d685e1ab92d06e4.zip tk-119ebaf7c2c3b50b40038d411d685e1ab92d06e4.tar.gz tk-119ebaf7c2c3b50b40038d411d685e1ab92d06e4.tar.bz2 |
Add explanatory comment
Diffstat (limited to 'library/systray.tcl')
-rw-r--r-- | library/systray.tcl | 3 |
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] |