summaryrefslogtreecommitdiffstats
path: root/mac/tkMacWindowMgr.c
diff options
context:
space:
mode:
authordas <das>2001-11-23 02:04:08 (GMT)
committerdas <das>2001-11-23 02:04:08 (GMT)
commitaa409cc42da819e8ab1d081e7a1f175b33c1c2cf (patch)
tree0d0864ac4fc0b0ff178f5869f1600d2c584109c8 /mac/tkMacWindowMgr.c
parent5efa25f6e1ad2a687cac8c1caab6d8c10f978269 (diff)
downloadtk-aa409cc42da819e8ab1d081e7a1f175b33c1c2cf.zip
tk-aa409cc42da819e8ab1d081e7a1f175b33c1c2cf.tar.gz
tk-aa409cc42da819e8ab1d081e7a1f175b33c1c2cf.tar.bz2
** upport to 8.4 of mac code changes for 8.3.3 & various new
** changes for 8.4, some already backported to 8.3.4 (patch #435660) see ChangeLog for details
Diffstat (limited to 'mac/tkMacWindowMgr.c')
-rw-r--r--mac/tkMacWindowMgr.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/mac/tkMacWindowMgr.c b/mac/tkMacWindowMgr.c
index 5e34c49..894a7d0 100644
--- a/mac/tkMacWindowMgr.c
+++ b/mac/tkMacWindowMgr.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacWindowMgr.c,v 1.8 2000/04/17 02:17:24 jingham Exp $
+ * RCS: @(#) $Id: tkMacWindowMgr.c,v 1.9 2001/11/23 02:06:32 das Exp $
*/
#include <Events.h>
@@ -273,13 +273,13 @@ TkAboutDlg()
while (itemHit != 1) {
ModalDialog( NULL, &itemHit);
}
- DisposDialog(aboutDlog);
+ DisposeDialog(aboutDlog);
aboutDlog = NULL;
if (TkMacHaveAppearance() >= 0x110) {
- SelectWindow(FrontWindow());
- } else {
SelectWindow(FrontNonFloatingWindow());
+ } else {
+ SelectWindow(FrontWindow());
}
return;
@@ -1234,7 +1234,11 @@ TkMacConvertEvent(
/* fall through */
case keyUp:
+ if (TkMacHaveAppearance() >= 0x110) {
whichWindow = FrontNonFloatingWindow();
+ } else {
+ whichWindow = FrontWindow();
+ }
if (whichWindow == NULL) {
/*
* This happens if we get a key event before Tk has had a
@@ -1715,7 +1719,7 @@ BringWindowForward(
WindowRef wRef)
{
if (!TkpIsWindowFloating(wRef)) {
- if (IsValidWindowPtr(wRef))
+ if ((TkMacHaveAppearance() < 0x110) || IsValidWindowPtr(wRef))
SelectWindow(wRef);
}
}