X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c973763629464966729cfa693baa833821ab2706..85284ca4b226d9a1ab6bed26c5eaa480543649d5:/src/common/popupcmn.cpp?ds=sidebyside diff --git a/src/common/popupcmn.cpp b/src/common/popupcmn.cpp index 4f04391aa0..5b1a49504b 100644 --- a/src/common/popupcmn.cpp +++ b/src/common/popupcmn.cpp @@ -291,7 +291,7 @@ void wxPopupTransientWindow::Popup(wxWindow *winFocus) m_focus->SetFocus(); } -#if defined( __WXMSW__ ) || defined( __WXMAC__) +#if defined( __WXMSW__ ) || (defined( __WXMAC__) && wxOSX_USE_CARBON) // MSW doesn't allow to set focus to the popup window, but we need to // subclass the window which has the focus, and not winFocus passed in or // otherwise everything else breaks down