From: Julian Smart Date: Fri, 15 Mar 2002 12:44:42 +0000 (+0000) Subject: Use override_direct to remove decorations if wxNO_BORDER specified, X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5a87039498e9de700a1d8427580a3a12f8adb757 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 --- diff --git a/src/x11/toplevel.cpp b/src/x11/toplevel.cpp index 53c97f4033..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