summaryrefslogtreecommitdiffstats
path: root/mac/tkMacMenu.c
diff options
context:
space:
mode:
authorjingham <jingham>2000-02-10 08:55:18 (GMT)
committerjingham <jingham>2000-02-10 08:55:18 (GMT)
commit824761dbcda694ee8ba6b108a373eb3c2aec026f (patch)
treef43637344ebdd7b323a38445d97180d1e32e880d /mac/tkMacMenu.c
parente082656eda18c1458feedf3392c25a00f88b92ef (diff)
downloadtk-824761dbcda694ee8ba6b108a373eb3c2aec026f.zip
tk-824761dbcda694ee8ba6b108a373eb3c2aec026f.tar.gz
tk-824761dbcda694ee8ba6b108a373eb3c2aec026f.tar.bz2
Add support for Appearance Manager 1.2 Floating windows, and the new window classes in unsupported1
Diffstat (limited to 'mac/tkMacMenu.c')
-rw-r--r--mac/tkMacMenu.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/mac/tkMacMenu.c b/mac/tkMacMenu.c
index cbcc229..c0db274 100644
--- a/mac/tkMacMenu.c
+++ b/mac/tkMacMenu.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: tkMacMenu.c,v 1.17 1999/12/16 21:58:02 hobbs Exp $
+ * RCS: @(#) $Id: tkMacMenu.c,v 1.18 2000/02/10 08:55:47 jingham Exp $
*/
#include "tkMacInt.h"
@@ -1881,8 +1881,15 @@ TkpSetMainMenubar(
{
TkWindow *winPtr = (TkWindow *) tkwin;
WindowRef macWindowPtr = (WindowRef) TkMacGetDrawablePort(winPtr->window);
+ WindowRef frontNonFloating;
- if ((macWindowPtr == NULL) || (macWindowPtr != FrontWindow())) {
+ if (TkMacHaveAppearance() >= 0x110) {
+ frontNonFloating = FrontNonFloatingWindow();
+ } else {
+ frontNonFloating = FrontWindow();
+ }
+
+ if ((macWindowPtr == NULL) || (macWindowPtr != frontNonFloating)) {
return;
}