// TODO: if we want no border, caption etc.,
// I think we set this to True to remove decorations
// No. RR.
- xattributes.override_redirect = False;
+ // Yes :-) JACS (because some WMs don't respect
+ // the hints)
+ xattributes.override_redirect = (style & wxNO_BORDER) ? True : False;
#endif
#if wxUSE_NANOX
m_needResizeInIdle = FALSE;
}
+ if (show)
+ {
+ // This does the layout _before_ the
+ // window is shown, else the items are
+ // drawn first at the wrong positions,
+ // then at the correct positions.
+ if (GetAutoLayout())
+ {
+ Layout();
+ }
+ }
+
return wxWindowX11::Show(show);
}