]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/event.cpp
static wxFile::Access() added
[wxWidgets.git] / src / common / event.cpp
index 428d8eb13a59cc74f207009a3bb59a4e77714c14..09a8f871d0f058cd7f4dd237935e8a523cbe8009 100644 (file)
@@ -344,8 +344,11 @@ bool wxEvtHandler::ProcessEvent(wxEvent& event)
       return win->GetParent()->GetEventHandler()->ProcessEvent(event);
   }
 
       return win->GetParent()->GetEventHandler()->ProcessEvent(event);
   }
 
-  // Last try - application object
-  if (wxTheApp && this != wxTheApp && wxTheApp->ProcessEvent(event))
+  // Last try - application object.
+  // Special case: don't pass wxEVT_IDLE to wxApp, since it'll always swallow it.
+  // wxEVT_IDLE is sent explicitly to wxApp so it will be processed appropriately
+  // via SearchEventTable.
+  if (wxTheApp && this != wxTheApp && (event.GetEventType() != wxEVT_IDLE) && wxTheApp->ProcessEvent(event))
     return TRUE;
   else
     return FALSE;
     return TRUE;
   else
     return FALSE;