]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/window.cpp
Use wxCONTROL_SPECIAL to denote first header button
[wxWidgets.git] / src / x11 / window.cpp
index b437ef79f65eb8ac2d55262b88a69aac1e8791bc..521a80b64afea9041fb2034fa21a758d0fb97f98 100644 (file)
@@ -350,8 +350,6 @@ wxWindowX11::~wxWindowX11()
     if (g_captureWindow == this)
         g_captureWindow = NULL;
 
-    m_isBeingDeleted = true;
-
     DestroyChildren();
 
     if (m_clientWindow != m_mainWindow)
@@ -1206,7 +1204,7 @@ void wxWindowX11::SendEraseEvents()
     if (m_clearRegion.IsEmpty()) return;
 
     wxClientDC dc( (wxWindow*)this );
-    dc.SetClippingRegion( m_clearRegion );
+    dc.SetDeviceClippingRegion( m_clearRegion );
 
     wxEraseEvent erase_event( GetId(), &dc );
     erase_event.SetEventObject( this );