summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-02-25 15:17:19 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-02-25 15:17:19 (GMT)
commit505168f33072ae432a1f15d9fad413cb68095477 (patch)
tree482d9d1c87b2625cb78ad228c326a04f25fa88b2 /win
parent612675a4f57c40b222eccf363977705fbdd848aa (diff)
parenta3ee774779349213a90779a5b69d5ac5d8357099 (diff)
downloadtk-505168f33072ae432a1f15d9fad413cb68095477.zip
tk-505168f33072ae432a1f15d9fad413cb68095477.tar.gz
tk-505168f33072ae432a1f15d9fad413cb68095477.tar.bz2
[e9112ef96e] Fix [wm forget]
Diffstat (limited to 'win')
-rw-r--r--win/tkWinWm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index 768ee69..4e7618d 100644
--- a/win/tkWinWm.c
+++ b/win/tkWinWm.c
@@ -3673,6 +3673,12 @@ WmForgetCmd(
winPtr->flags &= ~(TK_TOP_HIERARCHY|TK_TOP_LEVEL|TK_HAS_WRAPPER|TK_WIN_MANAGED);
Tk_MakeWindowExist((Tk_Window)winPtr->parentPtr);
RemapWindows(winPtr, Tk_GetHWND(winPtr->parentPtr->window));
+
+ /*
+ * Make sure wm no longer manages this window
+ */
+ Tk_ManageGeometry(frameWin, NULL, NULL);
+
TkWmDeadWindow(winPtr);
/* flags (above) must be cleared before calling */
/* TkMapTopFrame (below) */