Use override_direct to remove decorations if wxNO_BORDER specified,

because some WMs don't respect the hints sufficiently.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-03-15 12:44:42 +00:00
parent 95d60b2429
commit 5a87039498

View File

@@ -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