summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogelnew1@free.fr <fvogel>2016-08-19 20:31:26 (GMT)
committerfvogelnew1@free.fr <fvogel>2016-08-19 20:31:26 (GMT)
commit4b43d45f871450e142f18021bece991a8932e3ec (patch)
tree0ed4f7cc3249746ab389f2fdff2e52176f3dc688
parent5a65cd18e3076c78a2080b43c8434eed871d51ad (diff)
downloadtk-4b43d45f871450e142f18021bece991a8932e3ec.zip
tk-4b43d45f871450e142f18021bece991a8932e3ec.tar.gz
tk-4b43d45f871450e142f18021bece991a8932e3ec.tar.bz2
Fixed [fa32290898] - Can't dismiss ttk::menubutton menu until mouse has hovered over it
-rw-r--r--library/menu.tcl4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/menu.tcl b/library/menu.tcl
index a7aaa3f..b5dd88e 100644
--- a/library/menu.tcl
+++ b/library/menu.tcl
@@ -607,6 +607,10 @@ proc ::tk::MenuButtonDown menu {
if {![winfo viewable $menu]} {
return
}
+ if {[$menu index active] eq "none"} {
+ set Priv(window) {}
+ return
+ }
$menu postcascade active
if {$Priv(postedMb) ne "" && [winfo viewable $Priv(postedMb)]} {
grab -global $Priv(postedMb)