X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a66cf5a0f6d9e9b258a9523912539bab7f5b4b64..916989dfb95b7e4a72234d946b8e078235046e05:/src/mac/carbon/nonownedwnd.cpp diff --git a/src/mac/carbon/nonownedwnd.cpp b/src/mac/carbon/nonownedwnd.cpp index 2489f1022c..c52ce38738 100644 --- a/src/mac/carbon/nonownedwnd.cpp +++ b/src/mac/carbon/nonownedwnd.cpp @@ -1000,17 +1000,19 @@ void wxNonOwnedWindow::DoMacCreateRealWindow( } else if ( HasFlag( wxPOPUP_WINDOW ) ) { - // TEMPORARY HACK! - // Until we've got a real wxPopupWindow class on wxMac make it a - // little easier for wxFrame to be used to emulate it and workaround - // the lack of wxPopupWindow. if ( HasFlag( wxBORDER_NONE ) ) + { wclass = kHelpWindowClass ; // has no border + attr |= kWindowNoShadowAttribute; + } else + { wclass = kPlainWindowClass ; // has a single line border, it will have to do for now - //attr |= kWindowNoShadowAttribute; // turn off the shadow Should we?? - group = GetWindowGroupOfClass( // float above other windows - kFloatingWindowClass) ; + } + group = GetWindowGroupOfClass(kFloatingWindowClass) ; + // make sure we don't deactivate something + activationScopeSet = true; + activationScope = kWindowActivationScopeNone; } else if ( HasFlag( wxCAPTION ) ) {