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:
@@ -127,7 +127,9 @@ bool wxTopLevelWindowX11::Create(wxWindow *parent,
|
|||||||
// TODO: if we want no border, caption etc.,
|
// TODO: if we want no border, caption etc.,
|
||||||
// I think we set this to True to remove decorations
|
// I think we set this to True to remove decorations
|
||||||
// No. RR.
|
// 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
|
#endif
|
||||||
|
|
||||||
#if wxUSE_NANOX
|
#if wxUSE_NANOX
|
||||||
|
Reference in New Issue
Block a user