MacOS conforming activate/deactivate

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2001-12-20 07:50:22 +00:00
parent 422644a317
commit 1c469f7f4e
13 changed files with 100 additions and 91 deletions

View File

@@ -976,19 +976,24 @@ bool wxApp::Yield(bool onlyIfNeeded)
void wxApp::MacSuspend( bool convertClipboard )
{
// we have to deactive the window manually
// we have to deactive the top level windows manually
wxTopLevelWindow* window = (wxTopLevelWindow*) GetTopWindow() ;
if ( window )
window->MacActivate( MacGetCurrentEvent() , false ) ;
wxNode* node = wxTopLevelWindows.First();
while (node)
{
wxTopLevelWindow* win = (wxTopLevelWindow*) node->Data();
win->MacActivate( MacGetCurrentEvent() , false ) ;
s_lastMouseDown = 0 ;
if( convertClipboard )
{
MacConvertPrivateToPublicScrap() ;
}
node = node->Next();
}
::HideFloatingWindows() ;
s_lastMouseDown = 0 ;
if( convertClipboard )
{
MacConvertPrivateToPublicScrap() ;
}
::HideFloatingWindows() ;
}
void wxApp::MacResume( bool convertClipboard )