From: Vadim Zeitlin Date: Mon, 20 Feb 2012 21:57:10 +0000 (+0000) Subject: No changes, just simplify some code in wxX11. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/488b8b52bbc5f80d5278d4a5cd05ed8c4baa32ae?ds=sidebyside;hp=cec9cd06a3abcd3fa55fa8569379ff2a4a8fa2f4 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 --- diff --git a/src/x11/toplevel.cpp b/src/x11/toplevel.cpp index 5da3d5b3b7..36804b3ae6 100644 --- a/src/x11/toplevel.cpp +++ b/src/x11/toplevel.cpp @@ -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 ;