diff --git a/src/common/popupcmn.cpp b/src/common/popupcmn.cpp index 57ba86c0a0..5d382ed16e 100644 --- a/src/common/popupcmn.cpp +++ b/src/common/popupcmn.cpp @@ -301,7 +301,7 @@ bool wxPopupTransientWindow::Show( bool show ) } #endif -#ifdef __WXMSW__ +#if defined( __WXMSW__ ) || defined( __WMAC__ ) if (!show && m_child && m_child->HasCapture()) { m_child->ReleaseMouse(); @@ -343,7 +343,7 @@ bool wxPopupTransientWindow::Show( bool show ) } #endif -#ifdef __WXMSW__ +#if defined( __WXMSW__ ) || defined( __WMAC__ ) if (show && m_child) { // Assume that the mouse is outside the popup to begin with