]> git.saurik.com Git - wxWidgets.git/commitdiff
Moved Nano-X specific code from univ to x11
authorJulian Smart <julian@anthemion.co.uk>
Sun, 10 Mar 2002 09:25:35 +0000 (09:25 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 10 Mar 2002 09:25:35 +0000 (09:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/univ/dialog.cpp
src/x11/toplevel.cpp

index cf1d19793b044fddfcdcb01debd13092609ae960..6b42e73d02c72a13fdaf3bea6cd218871fa235f7 100644 (file)
@@ -153,18 +153,6 @@ bool wxDialog::Show(bool show)
             EndModal(wxID_CANCEL);
     }
 
-    // Not sure how to put this in platform-specific
-    // code just yet. Nano-X has to force a size event,
-    // else there's no initial size.
-#if wxUSE_NANOX
-    if (show)
-    {
-        wxSizeEvent event(GetSize(), GetId());
-        event.SetEventObject(this);
-        GetEventHandler()->ProcessEvent(event);
-    }
-#endif
-
     bool ret = wxDialogBase::Show(show);
 
     if ( show ) 
index d191faf6f16906a62ef4727ba4910bc604ba8bbd..123f4f836d7d2f783f43775397acfd7d018cb850 100644 (file)
@@ -231,6 +231,17 @@ wxTopLevelWindowX11::~wxTopLevelWindowX11()
 
 bool wxTopLevelWindowX11::Show(bool show)
 {
+    // Nano-X has to force a size event,
+    // else there's no initial size.
+#if wxUSE_NANOX
+    if (show)
+    {
+        wxSizeEvent event(GetSize(), GetId());
+        event.SetEventObject(this);
+        GetEventHandler()->ProcessEvent(event);
+    }
+#endif
+
     return wxWindowX11::Show(show);
 }