diff options
author | kevin_walzer <kevin_walzer@noemail.net> | 2011-07-27 02:33:29 (GMT) |
---|---|---|
committer | kevin_walzer <kevin_walzer@noemail.net> | 2011-07-27 02:33:29 (GMT) |
commit | 9c3c42f1f9572f23684189354cd3072d4f0e3a03 (patch) | |
tree | d63ec8a449dd2fb62036d99d4cb08af3a3cd3ca8 /macosx | |
parent | f0b13ba1b3679d326ba7afbef59122d43f47f3ed (diff) | |
download | tk-9c3c42f1f9572f23684189354cd3072d4f0e3a03.zip tk-9c3c42f1f9572f23684189354cd3072d4f0e3a03.tar.gz tk-9c3c42f1f9572f23684189354cd3072d4f0e3a03.tar.bz2 |
Minor tweak for wm forget
FossilOrigin-Name: 6ea155fbadce52861f9332d9d9c50bba7f7b9c60
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXWindowEvent.c | 4 | ||||
-rw-r--r-- | macosx/tkMacOSXWm.c | 4 |
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); |