From da73c5c65bf8ab7207ad55a86b88603935c1d27f Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 1 Jun 2013 18:28:53 +0000 Subject: [PATCH] only set native window level, when not using a wrapped native window, see #14739 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/nonownedwnd.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osx/cocoa/nonownedwnd.mm b/src/osx/cocoa/nonownedwnd.mm index bbba049d28..ac4bfd2e4a 100644 --- a/src/osx/cocoa/nonownedwnd.mm +++ b/src/osx/cocoa/nonownedwnd.mm @@ -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;