From b9c102317d27e0cc6c6f3df489b5ca4ab9f14a99 Mon Sep 17 00:00:00 2001
From: Stefan Csomor <csomor@advancedconcepts.ch>
Date: Thu, 22 May 2003 19:43:08 +0000
Subject: [PATCH] deactivating wxSTAY_ON_TOP patch

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20694 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 src/mac/app.cpp             | 4 ++++
 src/mac/carbon/app.cpp      | 4 ++++
 src/mac/carbon/toplevel.cpp | 4 ++++
 src/mac/toplevel.cpp        | 4 ++++
 4 files changed, 16 insertions(+)

diff --git a/src/mac/app.cpp b/src/mac/app.cpp
index f3ef282530..ecf1ec44b2 100644
--- a/src/mac/app.cpp
+++ b/src/mac/app.cpp
@@ -1399,7 +1399,11 @@ void wxApp::MacSuspend( bool convertClipboard )
     while (node)
     {
         wxTopLevelWindow* win = (wxTopLevelWindow*) node->Data();
+#if TARGET_CARBON
+#if 0 //  having problems right now with that
         if (!win->HasFlag(wxSTAY_ON_TOP))
+#endif  
+#endif
             win->MacActivate( ((EventRecord*) MacGetCurrentEvent())->when , false ) ;
 
         node = node->GetNext();
diff --git a/src/mac/carbon/app.cpp b/src/mac/carbon/app.cpp
index f3ef282530..ecf1ec44b2 100644
--- a/src/mac/carbon/app.cpp
+++ b/src/mac/carbon/app.cpp
@@ -1399,7 +1399,11 @@ void wxApp::MacSuspend( bool convertClipboard )
     while (node)
     {
         wxTopLevelWindow* win = (wxTopLevelWindow*) node->Data();
+#if TARGET_CARBON
+#if 0 //  having problems right now with that
         if (!win->HasFlag(wxSTAY_ON_TOP))
+#endif  
+#endif
             win->MacActivate( ((EventRecord*) MacGetCurrentEvent())->when , false ) ;
 
         node = node->GetNext();
diff --git a/src/mac/carbon/toplevel.cpp b/src/mac/carbon/toplevel.cpp
index bd6af55596..92cbb42606 100644
--- a/src/mac/carbon/toplevel.cpp
+++ b/src/mac/carbon/toplevel.cpp
@@ -598,8 +598,12 @@ void  wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title,
         attr |= kWindowCloseBoxAttribute ;
     }
 
+#if TARGET_CARBON
+#if 0 //  having problems right now with that
     if (HasFlag(wxSTAY_ON_TOP))
     	wclass = kUtilityWindowClass;
+#endif
+#endif
 
 #if TARGET_CARBON
     if ( HasFlag(wxFRAME_SHAPED) )
diff --git a/src/mac/toplevel.cpp b/src/mac/toplevel.cpp
index bd6af55596..92cbb42606 100644
--- a/src/mac/toplevel.cpp
+++ b/src/mac/toplevel.cpp
@@ -598,8 +598,12 @@ void  wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title,
         attr |= kWindowCloseBoxAttribute ;
     }
 
+#if TARGET_CARBON
+#if 0 //  having problems right now with that
     if (HasFlag(wxSTAY_ON_TOP))
     	wclass = kUtilityWindowClass;
+#endif
+#endif
 
 #if TARGET_CARBON
     if ( HasFlag(wxFRAME_SHAPED) )
-- 
2.47.2