From bd774a44a840aacdc897242798453a0de8ba984a Mon Sep 17 00:00:00 2001 From: hobbs Date: Wed, 30 Nov 2005 22:58:07 +0000 Subject: * win/tkWinWm.c (UpdateWrapper): Don't install frame menu on dead window. Backport of 1233635 --- ChangeLog | 3 +++ win/tkWinWm.c | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 491ae0c..7285a9d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-11-30 Jeff Hobbs + * win/tkWinWm.c (UpdateWrapper): Don't install frame menu on dead + window. Backport of 1233635 + * generic/tkEvent.c: fix handling of ClientMessage handlers. [Bug 1289565 983920] diff --git a/win/tkWinWm.c b/win/tkWinWm.c index f5d8f59..52086ef 100644 --- a/win/tkWinWm.c +++ b/win/tkWinWm.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinWm.c,v 1.54.2.20 2005/06/01 00:07:30 mdejong Exp $ + * RCS: @(#) $Id: tkWinWm.c,v 1.54.2.21 2005/11/30 22:58:07 hobbs Exp $ */ #include "tkWinInt.h" @@ -2123,7 +2123,9 @@ UpdateWrapper(winPtr) wmPtr->x = place.rcNormalPosition.left; wmPtr->y = place.rcNormalPosition.top; - TkInstallFrameMenu((Tk_Window) winPtr); + if (!(winPtr->flags & TK_ALREADY_DEAD)) { + TkInstallFrameMenu((Tk_Window) winPtr); + } if (oldWrapper && (oldWrapper != wmPtr->wrapper) && !(wmPtr->exStyle & WS_EX_TOPMOST)) { -- cgit v0.12