]> git.saurik.com Git - wxWidgets.git/commitdiff
only set native window level, when not using a wrapped native window, see #14739
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 1 Jun 2013 18:28:53 +0000 (18:28 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 1 Jun 2013 18:28:53 +0000 (18:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/nonownedwnd.mm

index bbba049d28bba4b0e076600fe0fc9fde7256cdc3..ac4bfd2e4a5eafdd74f9c7353ac6b3969ebccbad 100644 (file)
@@ -784,7 +784,8 @@ void wxNonOwnedWindowCocoaImpl::SetExtraStyle( long exStyle )
 
 void wxNonOwnedWindowCocoaImpl::SetWindowStyleFlag( long style )
 {
-    if (m_macWindow)
+    // don't mess with native wrapped windows, they might throw an exception when their level is changed
+    if (!m_wxPeer->IsNativeWindowWrapper() && m_macWindow)
     {
         CGWindowLevel level = kCGNormalWindowLevel;