diff options
author | das <das@noemail.net> | 2006-09-11 16:12:57 (GMT) |
---|---|---|
committer | das <das@noemail.net> | 2006-09-11 16:12:57 (GMT) |
commit | e6a26652de58b2cdb57b8b5c19884e14fa21a828 (patch) | |
tree | 1a638eda53a3542c32fa9bfd0f1141c71bdb7a17 /macosx | |
parent | 2ffcc463523973782a037e657e8e419b5d7d9c68 (diff) | |
download | tk-e6a26652de58b2cdb57b8b5c19884e14fa21a828.zip tk-e6a26652de58b2cdb57b8b5c19884e14fa21a828.tar.gz tk-e6a26652de58b2cdb57b8b5c19884e14fa21a828.tar.bz2 |
fix logic bug in previous commit
FossilOrigin-Name: 8f372f48067d166b6b7cede68b5e07234bba8b1d
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXWm.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index fcb2040..16f9da9 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacOSXWm.c,v 1.7.2.33 2006/09/11 14:41:17 das Exp $ + * RCS: @(#) $Id: tkMacOSXWm.c,v 1.7.2.34 2006/09/11 16:12:58 das Exp $ */ #include "tkMacOSXInt.h" @@ -5800,15 +5800,19 @@ ApplyWindowAttributeChanges(TkWindow *winPtr, int newAttributes, int oldAttributes, int create) { if (newAttributes != oldAttributes) { - if (winPtr->window == None && create) { - Tk_MakeWindowExist((Tk_Window) winPtr); - } else { - return; + if (winPtr->window == None) { + if (create) { + Tk_MakeWindowExist((Tk_Window) winPtr); + } else { + return; + } } - if (!TkMacOSXHostToplevelExists(winPtr) && create) { - TkMacOSXMakeRealWindowExist(winPtr); - } else { - return; + if (!TkMacOSXHostToplevelExists(winPtr)) { + if (create) { + TkMacOSXMakeRealWindowExist(winPtr); + } else { + return; + } } ChangeWindowAttributes( GetWindowFromPort(TkMacOSXGetDrawablePort(winPtr->window)), |