X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/937013e0fd914d4c42f9f5ec98da665986b93dfa..ee223f807b97d4235d009a224f02186ac45749ee:/src/mac/carbon/popupwin.cpp diff --git a/src/mac/carbon/popupwin.cpp b/src/mac/carbon/popupwin.cpp index 4049f00430..b60673a5f2 100644 --- a/src/mac/carbon/popupwin.cpp +++ b/src/mac/carbon/popupwin.cpp @@ -51,7 +51,7 @@ wxPopupWindow::~wxPopupWindow() } } -bool wxPopupWindow::Create(wxWindow *parent, int flags) +bool wxPopupWindow::Create(wxWindow *parent, int WXUNUSED(flags)) { m_macIsUserPane = false ; @@ -63,13 +63,15 @@ bool wxPopupWindow::Create(wxWindow *parent, int flags) WindowClass wclass = kHelpWindowClass; WindowAttributes attr = kWindowCompositingAttribute ; - WindowRef parentWindow =(WindowRef) parent->MacGetTopLevelWindowRef(); Rect bounds = { 0,0,0,0 }; OSStatus err = ::CreateNewWindow( wclass , attr , &bounds , (WindowRef*)&m_popupWindowRef ) ; if ( err == noErr ) { -// SetWindowGroup( (WindowRef) m_popupWindowRef, GetWindowGroup(parentWindow)); // Put them in the same group so that their window layers are consistent +#if 0 + WindowRef parentWindow =(WindowRef) parent->MacGetTopLevelWindowRef(); + SetWindowGroup( (WindowRef) m_popupWindowRef, GetWindowGroup(parentWindow)); // Put them in the same group so that their window layers are consistent +#endif } m_peer = new wxMacControl(this , true /*isRootControl*/) ;