summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorandreask <andreask>2014-02-06 21:20:39 (GMT)
committerandreask <andreask>2014-02-06 21:20:39 (GMT)
commite978b5dfa3fce531e61f49686113fd26f3fcc7cb (patch)
treeca2fdeabb5615c51e3617e2fff48b8b7301c98db /library
parent69b73058c94347b31dd99a8e3e6918389225432b (diff)
downloadtk-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')
-rw-r--r--library/menu.tcl1
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
}