No changes, just simplify some code in wxX11.

Don't use redundantly weird flags tests.

Closes #14020.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-02-20 21:57:10 +00:00
parent cec9cd06a3
commit 488b8b52bb

View File

@@ -726,8 +726,7 @@ bool wxSetWMDecorations(Window w, long style)
wmProp.flags |= GR_WM_FLAGS_PROPS ;
}
if (((style & wxBORDER) != wxBORDER) && ((style & wxRESIZE_BORDER) != wxRESIZE_BORDER)
&& ((style & wxRESIZE_BORDER) != wxRESIZE_BORDER))
if ( !(style & wxBORDER) && !(style & wxRESIZE_BORDER) )
{
wmProp.props |= GR_WM_PROPS_NODECORATE ;
wmProp.flags |= GR_WM_FLAGS_PROPS ;