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);
}
// wxLogDebug( "Setting pos: %d, %d", x, y );
wxWindowX11::DoSetSize(x, y, width, height, sizeFlags);
+#if 0
wxPoint pt = GetPosition();
// wxLogDebug( "After, pos: %d, %d", pt.x, pt.y );
-#if 0
+
XSync(wxGlobalDisplay(), False);
int w, h;
GetSize(& w, & h);