X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6239ee05567eac71754f56c2a154222d10b57ff1..6cef0db28018fd2644ee4e38af715872e5242459:/src/mac/carbon/popupwin.cpp?ds=inline diff --git a/src/mac/carbon/popupwin.cpp b/src/mac/carbon/popupwin.cpp index f3f91de491..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*/) ; @@ -153,7 +155,7 @@ bool wxPopupWindow::Show(bool show) // because apps expect a size event to occur at this moment wxSizeEvent event(GetSize() , m_windowId); event.SetEventObject(this); - GetEventHandler()->ProcessEvent(event); + HandleWindowEvent(event); } else {