diff options
author | dgp <dgp@noemail.net> | 2016-02-25 15:17:19 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2016-02-25 15:17:19 (GMT) |
commit | 591606c4c1d1fb56cc94e6d9e32457bc9a5f2b58 (patch) | |
tree | 482d9d1c87b2625cb78ad228c326a04f25fa88b2 | |
parent | a5264726ea786dba8c3299cd48fe24ab044c0f56 (diff) | |
parent | 088c71d0580aa606de4fbcbf0d617188bd34f68d (diff) | |
download | tk-591606c4c1d1fb56cc94e6d9e32457bc9a5f2b58.zip tk-591606c4c1d1fb56cc94e6d9e32457bc9a5f2b58.tar.gz tk-591606c4c1d1fb56cc94e6d9e32457bc9a5f2b58.tar.bz2 |
[e9112ef96e] Fix [wm forget]
FossilOrigin-Name: 407a575527c71503c01a95a60ebeb1d15b02df64
-rw-r--r-- | macosx/tkMacOSXWm.c | 5 | ||||
-rw-r--r-- | unix/tkUnixWm.c | 5 | ||||
-rw-r--r-- | win/tkWinWm.c | 6 |
3 files changed, 16 insertions, 0 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index 3ea2f51..39990e6 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -1788,6 +1788,11 @@ WmForgetCmd( TkWmDeadWindow(winPtr); RemapWindows(winPtr, (MacDrawable *) winPtr->parentPtr->window); + /* + * Make sure wm no longer manages this window + */ + Tk_ManageGeometry(frameWin, NULL, NULL); + winPtr->flags &= ~(TK_TOP_HIERARCHY|TK_TOP_LEVEL|TK_HAS_WRAPPER|TK_WIN_MANAGED); /* diff --git a/unix/tkUnixWm.c b/unix/tkUnixWm.c index 612270c..19ac86c 100644 --- a/unix/tkUnixWm.c +++ b/unix/tkUnixWm.c @@ -1826,6 +1826,11 @@ WmForgetCmd( ~(TK_TOP_HIERARCHY|TK_TOP_LEVEL|TK_HAS_WRAPPER|TK_WIN_MANAGED); RemapWindows(winPtr, winPtr->parentPtr); + /* + * Make sure wm no longer manages this window + */ + Tk_ManageGeometry(frameWin, NULL, NULL); + /* * Flags (above) must be cleared before calling TkMapTopFrame (below). */ 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) */ |