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();
+ }
+
+ s_lastMouseDown = 0 ;
+ if( convertClipboard )
+ {
+ MacConvertPrivateToPublicScrap() ;
+ }
- ::HideFloatingWindows() ;
+ ::HideFloatingWindows() ;
}
void wxApp::MacResume( bool convertClipboard )
#else
SetPort( (window) ) ;
#endif
- SetOrigin( 0 , 0 ) ;
LocalToGlobal( &pt ) ;
SetPort( port ) ;
win->SetSize( pt.h , pt.v , -1 ,
#else
SetPort( (window) ) ;
#endif
- SetOrigin( 0 , 0 ) ;
SetPort( port ) ;
}
if ( window != frontWindow && wxTheApp->s_captureWindow == NULL )