]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/evtloop.h
Added wxTopLevelWindow::HasFocus() as discussed.
[wxWidgets.git] / include / wx / evtloop.h
index 42b00f2d03f85a03d350f96017cd2848e64c6115..d77cbf13ded28e72af724acb34eaff2e0722a364 100644 (file)
@@ -88,7 +88,7 @@ public:
     virtual void Exit(int rc = 0);
     virtual bool Pending() const;
     virtual bool Dispatch();
-    virtual bool IsRunning() const { return m_impl != NULL; }
+    virtual bool IsRunning() const { return GetActive() == this; }
 
 protected:
     // the pointer to the port specific implementation class