summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXWm.c
diff options
context:
space:
mode:
authordas <das>2006-04-07 06:15:42 (GMT)
committerdas <das>2006-04-07 06:15:42 (GMT)
commit82780ae1278b1a90e446dc7535ec0c75e87b4a0c (patch)
treeb857b1cd53b4c16c6b24f74944dc43bafdfc4426 /macosx/tkMacOSXWm.c
parentc00d853ea77cacb48ff6fd5c6055c81ab95caad5 (diff)
downloadtk-82780ae1278b1a90e446dc7535ec0c75e87b4a0c.zip
tk-82780ae1278b1a90e446dc7535ec0c75e87b4a0c.tar.gz
tk-82780ae1278b1a90e446dc7535ec0c75e87b4a0c.tar.bz2
* macosx/tkMacOSXMouseEvent.c (TkMacOSXProcessMouseEvent): fix return
values, implement window dragging & growing in background (with Command key down) and by fronting clicks, use correct button & modifier state API when application is in background (also in TkMacOSXButtonKeyState). * macosx/tkMacOSXWm.c (TkMacOSXGrowToplevel): ensure QD port is set correctly before using API relying on it.
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 af42cca..3586d54 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.25 2006/04/06 09:28:32 das Exp $
+ * RCS: @(#) $Id: tkMacOSXWm.c,v 1.26 2006/04/07 06:15:42 das Exp $
*/
#include "tkMacOSXInt.h"
@@ -4497,6 +4497,7 @@ TkMacOSXGrowToplevel(
TkDisplay *dispPtr;
Rect portRect;
+ SetPort(GetWindowPort(whichWindow));
GlobalToLocal(&where);
GetPortBounds(GetWindowPort(whichWindow), &portRect );
if (where.h > (portRect.right - 16) &&
@@ -4535,7 +4536,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,
@@ -4686,7 +4686,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