summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXWm.c
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/tkMacOSXWm.c')
-rw-r--r--macosx/tkMacOSXWm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c
index b4e1c3f..f45001a 100644
--- a/macosx/tkMacOSXWm.c
+++ b/macosx/tkMacOSXWm.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: tkMacOSXWm.c,v 1.7.2.19 2006/04/06 09:29:00 das Exp $
+ * RCS: @(#) $Id: tkMacOSXWm.c,v 1.7.2.20 2006/04/07 06:16:03 das Exp $
*/
#include "tkMacOSXInt.h"
@@ -4396,6 +4396,7 @@ TkMacOSXGrowToplevel(
TkDisplay *dispPtr;
Rect portRect;
+ SetPort(GetWindowPort(whichWindow));
GlobalToLocal(&where);
GetPortBounds(GetWindowPort(whichWindow), &portRect );
if (where.h > (portRect.right - 16) &&
@@ -4434,7 +4435,6 @@ TkMacOSXGrowToplevel(
if (growResult != 0) {
SizeWindow(whichWindow,
LoWord(growResult), HiWord(growResult), true);
- SetPort( GetWindowPort(whichWindow));
InvalWindowRect(whichWindow,&portRect); /* TODO: may not be needed */
TkMacOSXInvalClipRgns((Tk_Window) winPtr);
TkGenWMConfigureEvent((Tk_Window) winPtr, -1, -1,
@@ -4585,7 +4585,7 @@ TkMacOSXZoomToplevel(
TkDisplay *dispPtr;
Rect portRect;
- SetPort( GetWindowPort(whichWindow));
+ SetPort(GetWindowPort(whichWindow));
/*
* We should now zoom the window (as long as it's one of ours). We