X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6868c3eb8fabd2b3a04446b8a5fc752fa9e78caf..8facbb759c8c9c7c427089106ffaa9430e0bea66:/src/mac/window.cpp?ds=sidebyside diff --git a/src/mac/window.cpp b/src/mac/window.cpp index 1dc5b4e6ae..edc7d866a8 100644 --- a/src/mac/window.cpp +++ b/src/mac/window.cpp @@ -296,6 +296,11 @@ void wxWindow::CaptureMouse() wxTheApp->s_captureWindow = this ; } +wxWindow* wxWindowBase::GetCapture() +{ + return wxTheApp->s_captureWindow ; +} + void wxWindow::ReleaseMouse() { wxTheApp->s_captureWindow = NULL ; @@ -770,7 +775,17 @@ bool wxWindow::Show(bool show) } } MacSuperShown( show ) ; - Refresh() ; + if ( !show ) + { + WindowRef window = GetMacRootWindow() ; + wxWindow* win = wxFindWinFromMacWindow( window ) ; + if ( !win->m_isBeingDeleted ) + Refresh() ; + } + else + { + Refresh() ; + } return TRUE; }