]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/window.cpp
Fix wxGrid compilation with MSVC7.
[wxWidgets.git] / src / x11 / window.cpp
index 1857c9886810ff004ac1b69779b55d3a558d8f27..61db6dee8d880544b931703b2a9fa28902c3059b 100644 (file)
@@ -1641,9 +1641,7 @@ bool wxWindowX11::SetForegroundColour(const wxColour& col)
 
 wxWindow *wxGetActiveWindow()
 {
-    // TODO
-    wxFAIL_MSG(wxT("Not implemented"));
-    return NULL;
+    return wxGetTopLevelParent(wxWindow::FindFocus());
 }
 
 /* static */