wxNonOwnedWindow::~wxNonOwnedWindow()
{
- m_isBeingDeleted = true;
+ SendDestroyEvent();
// destroy all children before we destroy the underlying DirectFB window,
// so that if any of them does something with the TLW, it will still work:
// blit the entire back buffer to front soon
m_isPainting = true;
-#ifdef __WXDEBUG__
int requestsCount = 0;
-#endif
wxRect request;
while ( m_toPaint->GetNext(request) )
{
-#ifdef __WXDEBUG__
requestsCount++;
-#endif
wxRect clipped(request);
clipped.Intersect(winRect);
if ( clipped.IsEmpty() )