diff options
author | andreask <andreask> | 2014-02-06 21:20:39 (GMT) |
---|---|---|
committer | andreask <andreask> | 2014-02-06 21:20:39 (GMT) |
commit | e978b5dfa3fce531e61f49686113fd26f3fcc7cb (patch) | |
tree | ca2fdeabb5615c51e3617e2fff48b8b7301c98db /library/menu.tcl | |
parent | 69b73058c94347b31dd99a8e3e6918389225432b (diff) | |
download | tk-e978b5dfa3fce531e61f49686113fd26f3fcc7cb.zip tk-e978b5dfa3fce531e61f49686113fd26f3fcc7cb.tar.gz tk-e978b5dfa3fce531e61f49686113fd26f3fcc7cb.tar.bz2 |
Ticket [3279221]: Fixed setup of popup menu to prevent immediate
disappearance due to an event race.
Diffstat (limited to 'library/menu.tcl')
-rw-r--r-- | library/menu.tcl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/menu.tcl b/library/menu.tcl index f133c87..8b29f00 100644 --- a/library/menu.tcl +++ b/library/menu.tcl @@ -1344,6 +1344,7 @@ proc ::tk_popup {menu x y {entry {}}} { tk::SaveGrabInfo $menu grab -global $menu set Priv(popup) $menu + set Priv(window) $menu set Priv(menuActivated) 1 tk_menuSetFocus $menu } |