summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2011-07-27 02:33:29 (GMT)
committerKevin Walzer <kw@codebykevin.com>2011-07-27 02:33:29 (GMT)
commit5a4b822ad00a41f425f7b9bdade7eeced6d9aac0 (patch)
treed63ec8a449dd2fb62036d99d4cb08af3a3cd3ca8 /macosx
parent4c0b988f0d667f4a9aa53b4bd97aa5084844f7d2 (diff)
downloadtk-5a4b822ad00a41f425f7b9bdade7eeced6d9aac0.zip
tk-5a4b822ad00a41f425f7b9bdade7eeced6d9aac0.tar.gz
tk-5a4b822ad00a41f425f7b9bdade7eeced6d9aac0.tar.bz2
Minor tweak for wm forget
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXWindowEvent.c4
-rw-r--r--macosx/tkMacOSXWm.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c
index 282979f..722ac9d 100644
--- a/macosx/tkMacOSXWindowEvent.c
+++ b/macosx/tkMacOSXWindowEvent.c
@@ -272,7 +272,7 @@ extern NSString *opaqueTag;
int code = Tcl_EvalEx(_eventInterp, cmd, -1, TCL_EVAL_GLOBAL);
if (code != TCL_OK) {
- Tcl_BackgroundException(_eventInterp, code);
+ Tcl_BackgroundError(_eventInterp);
}
Tcl_ResetResult(_eventInterp);
}
@@ -708,7 +708,7 @@ TkWmProtocolEventProc(
Tcl_AddErrorInfo(interp,
Tk_GetAtomName((Tk_Window) winPtr, protocol));
Tcl_AddErrorInfo(interp, "\" window manager protocol)");
- Tcl_BackgroundException(interp, result);
+ Tcl_BackgroundError(interp);
}
Tcl_Release(interp);
Tcl_Release(protPtr);
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c
index 8e3fc40..b916de3 100644
--- a/macosx/tkMacOSXWm.c
+++ b/macosx/tkMacOSXWm.c
@@ -1643,8 +1643,8 @@ WmForgetCmd(
MacDrawable *macWin = (MacDrawable *) winPtr->parentPtr->window;
TkFocusJoin(winPtr);
- Tk_UnmapWindow(frameWin);
- TkWmDeadWindow(macWin);
+ Tk_UnmapWindow(frameWin);
+ TkWmDeadWindow(macWin);
RemapWindows(winPtr, macWin);
winPtr->flags &=~(TK_TOP_HIERARCHY|TK_TOP_LEVEL|TK_HAS_WRAPPER|TK_WIN_MANAGED);