diff options
author | das <das> | 2006-04-07 06:16:03 (GMT) |
---|---|---|
committer | das <das> | 2006-04-07 06:16:03 (GMT) |
commit | 3c11e6e3b108c9af89950d9f67f78f1bf00997d5 (patch) | |
tree | 25927753719516cad63118d804ccd1a6b8af996e /macosx/tkMacOSXWm.c | |
parent | 94ec6d314586f3e5a501ef37de0039905b32bfe8 (diff) | |
download | tk-3c11e6e3b108c9af89950d9f67f78f1bf00997d5.zip tk-3c11e6e3b108c9af89950d9f67f78f1bf00997d5.tar.gz tk-3c11e6e3b108c9af89950d9f67f78f1bf00997d5.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.
* macosx/tkMacOSXMouseEvent.c: now that [wm attributes -titlepath]
works correctly, add OS support for dragging proxy icons and
using the titlepath menu.
Diffstat (limited to 'macosx/tkMacOSXWm.c')
-rw-r--r-- | macosx/tkMacOSXWm.c | 6 |
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 |