diff options
author | fvogel <fvogelnew1@free.fr> | 2016-08-19 20:31:26 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2016-08-19 20:31:26 (GMT) |
commit | c624ab7d9f938a07c54d40186e8b628fca03aae9 (patch) | |
tree | 0ed4f7cc3249746ab389f2fdff2e52176f3dc688 /library | |
parent | 78b0ef91ba73274cbe049062a4da3778efee8a37 (diff) | |
download | tk-c624ab7d9f938a07c54d40186e8b628fca03aae9.zip tk-c624ab7d9f938a07c54d40186e8b628fca03aae9.tar.gz tk-c624ab7d9f938a07c54d40186e8b628fca03aae9.tar.bz2 |
Fixed [fa32290898] - Can't dismiss ttk::menubutton menu until mouse has hovered over it
Diffstat (limited to 'library')
-rw-r--r-- | library/menu.tcl | 4 |
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) |