diff options
author | hobbs <hobbs> | 2005-12-01 06:24:16 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2005-12-01 06:24:16 (GMT) |
commit | 4cd04ee31b81888a78ef6b97278b638d473bb7b4 (patch) | |
tree | 5d69b61049ff2295107776b3032a45ff78413b50 /macosx/tkMacOSXWindowEvent.c | |
parent | f1db646ab6e4c24d6eb94aa7e5aeaf0d87b1b688 (diff) | |
download | tk-4cd04ee31b81888a78ef6b97278b638d473bb7b4.zip tk-4cd04ee31b81888a78ef6b97278b638d473bb7b4.tar.gz tk-4cd04ee31b81888a78ef6b97278b638d473bb7b4.tar.bz2 |
* macosx/tkMacOSXXStubs.c (TkpOpenDisplay, TkMacOSXDisplayChanged):
* macosx/tkMacOSXWindowEvent.c (TkMacOSXProcessApplicationEvent):
* macosx/tkMacOSXCarbonEvents.c (TkMacOSXInitCarbonEvents):
* macosx/tkMacOSXEvent.h: Trap kEventAppAvailableWindowBoundsChanged
* macosx/tkMacOSXInt.h: event to watch for change in display size
and adjust internal state appropriately.
Diffstat (limited to 'macosx/tkMacOSXWindowEvent.c')
-rw-r--r-- | macosx/tkMacOSXWindowEvent.c | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c index 570c734..0fa938b 100644 --- a/macosx/tkMacOSXWindowEvent.c +++ b/macosx/tkMacOSXWindowEvent.c @@ -54,7 +54,7 @@ * software in accordance with the terms specified in this * license. * - * RCS: @(#) $Id: tkMacOSXWindowEvent.c,v 1.8 2005/11/27 02:36:15 das Exp $ + * RCS: @(#) $Id: tkMacOSXWindowEvent.c,v 1.9 2005/12/01 06:24:16 hobbs Exp $ */ #include "tkMacOSXInt.h" @@ -106,12 +106,12 @@ TkMacOSXProcessApplicationEvent( MacEventStatus *statusPtr) { Tcl_CmdInfo dummy; - - /* + + /* * This is a bit of a hack. We get "show" events both when we come back - * from being hidden, and whenever we are activated. I only want to run the - * "show" proc when we have been hidden already, not as a substitute for - * <Activate>. So I use this toggle... + * from being hidden, and whenever we are activated. I only want to run + * the "show" proc when we have been hidden already, not as a substitute + * for <Activate>. So I use this toggle... */ static int toggleHide = 0; @@ -154,6 +154,14 @@ TkMacOSXProcessApplicationEvent( } statusPtr->stopProcessing = 1; break; + case kEventAppAvailableWindowBoundsChanged: { + TkDisplay *dispPtr = TkGetDisplayList(); + TkMacOSXDisplayChanged(dispPtr->display); + /* + * Should we call ::tk::mac::OnDisplayChanged? + */ + break; + } default: break; } @@ -239,11 +247,11 @@ TkMacOSXProcessWindowEvent( return 0; } -/* +/* *---------------------------------------------------------------------- - * + * * GenerateUpdateEvent -- - * + * * Given a Macintosh window update event this function generates all the * X update events needed by Tk. * |