if (g_isIdle)
wxapp_install_idle_handler();
- if (!win->m_hasVMT)
+ if (!win->m_hasVMT || !win->IsShown())
return FALSE;
int x = 0;
wxTopLevelWindowGTK::~wxTopLevelWindowGTK()
{
m_isBeingDeleted = TRUE;
+
+ gtk_window_set_focus( GTK_WINDOW(m_widget), NULL );
wxTopLevelWindows.DeleteObject( this );