X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f0c3b72446ee4a45e63a953d2a098a5f229f3a57..fc1e45d95b99c7939c61daa1853567c0bbe6aeca:/src/mgl/toplevel.cpp

diff --git a/src/mgl/toplevel.cpp b/src/mgl/toplevel.cpp
index a4f10c308c..d2ede3f43c 100644
--- a/src/mgl/toplevel.cpp
+++ b/src/mgl/toplevel.cpp
@@ -152,10 +152,10 @@ bool wxTopLevelWindowMGL::Show(bool show)
         m_sizeSet = true;
         wxSizeEvent event(GetSize(), GetId());
         event.SetEventObject(this);
-        GetEventHandler()->ProcessEvent(event);
+        HandleWindowEvent(event);
     }
 
-    if ( ret && show && AcceptsFocus() )
+    if ( ret && show && CanAcceptFocus() )
         SetFocus();
         // FIXME_MGL -- don't do this for popup windows?
     return ret;