]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/window.cpp
define MIIM_BITMAP &c in wx/msw/missing.h instead of msw/menu.cpp as menuitem.cpp...
[wxWidgets.git] / src / motif / window.cpp
index 32f3dabc2eee7c3951ba4e533463e8a8fa73c909..116998f5a8dc43889162539bf8588f6b213a1697 100644 (file)
@@ -345,11 +345,11 @@ bool wxWindow::Create(wxWindow *parent, wxWindowID id,
 // Destructor
 wxWindow::~wxWindow()
 {
+    SendDestroyEvent();
+
     if (g_captureWindow == this)
         g_captureWindow = NULL;
 
-    m_isBeingDeleted = true;
-
     // Motif-specific actions first
     WXWidget wMain = GetMainWidget();
     if ( wMain )