// Author: Stefan Csomor
// Modified by:
// Created: 24.09.01
-// RCS-ID: $Id$
// Copyright: (c) 2001-2004 Stefan Csomor
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
if (m_nowpeer && m_nowpeer->GetWXWindow())
ClearKeyboardFocus( (WindowRef)m_nowpeer->GetWXWindow() );
#endif
- return wxTopLevelWindowBase::Destroy();
+ // delayed destruction: the tlw will be deleted during the next idle
+ // loop iteration
+ if ( !wxPendingDelete.Member(this) )
+ wxPendingDelete.Append(this);
+
+ Hide();
+ return true;
}
m_nowpeer->ShowWithoutActivating();
- // TODO: Should we call EVT_SIZE here?
+ // because apps expect a size event to occur at this moment
+ SendSizeEvent();
}
bool wxTopLevelWindowMac::ShowFullScreen(bool show, long style)