X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c7d861555347a19bb1743de1402904e309bf31ac..588b8b7037d2b1c736863c43952b4d3a05c6cf2f:/src/x11/toplevel.cpp diff --git a/src/x11/toplevel.cpp b/src/x11/toplevel.cpp index 2fef702902..e63799559c 100644 --- a/src/x11/toplevel.cpp +++ b/src/x11/toplevel.cpp @@ -127,7 +127,9 @@ bool wxTopLevelWindowX11::Create(wxWindow *parent, // 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 @@ -260,6 +262,18 @@ bool wxTopLevelWindowX11::Show(bool show) 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); }