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)
commit0fc8397d47071689b16fbb1516c1041d2a7d0156 (patch)
treef30a2cf8ff7b655f50022f823e2d5c4da7052da5 /library
parent1005448580c230f396de55c033c400f00ea72c82 (diff)
downloadtk-0fc8397d47071689b16fbb1516c1041d2a7d0156.zip
tk-0fc8397d47071689b16fbb1516c1041d2a7d0156.tar.gz
tk-0fc8397d47071689b16fbb1516c1041d2a7d0156.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
}