]> git.saurik.com Git - wxWidgets.git/commitdiff
Use override_direct to remove decorations if wxNO_BORDER specified,
authorJulian Smart <julian@anthemion.co.uk>
Fri, 15 Mar 2002 12:44:42 +0000 (12:44 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 15 Mar 2002 12:44:42 +0000 (12:44 +0000)
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

src/x11/toplevel.cpp

index 53c97f4033f49d9b19cd87ece6ce2a8d2e3ef27a..e63799559c59d477b8c4d264b2367d89169cbc9a 100644 (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