summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXWm.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2012-09-25 15:02:22 (GMT)
committerKevin Walzer <kw@codebykevin.com>2012-09-25 15:02:22 (GMT)
commitdff342166911d2fef03897e094bff7ed86c4a17b (patch)
treea14fcdac13403624a5b4d4989b5ba09c60b69a2e /macosx/tkMacOSXWm.c
parent59e0055e5372987ed7f16557ff3eeb6f75512b98 (diff)
downloadtk-dff342166911d2fef03897e094bff7ed86c4a17b.zip
tk-dff342166911d2fef03897e094bff7ed86c4a17b.tar.gz
tk-dff342166911d2fef03897e094bff7ed86c4a17b.tar.bz2
Backport of dgp fixes to trunk for Tk-Cocoa
Diffstat (limited to 'macosx/tkMacOSXWm.c')
-rw-r--r--macosx/tkMacOSXWm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c
index 22c95e9..e56c0e7 100644
--- a/macosx/tkMacOSXWm.c
+++ b/macosx/tkMacOSXWm.c
@@ -1641,7 +1641,9 @@ WmForgetCmd(
if (Tk_IsTopLevel(frameWin)) {
- MacDrawable *macWin = (MacDrawable *) winPtr->parentPtr->window;
+ MacDrawable *macWin;
+ Tk_MakeWindowExist(winPtr);
+ Tk_MakeWindowExist(winPtr->parentPtr); macWin = (MacDrawable *) winPtr->window;
TkFocusJoin(winPtr);
Tk_UnmapWindow(frameWin);
TkWmDeadWindow(macWin);