equal
deleted
inserted
replaced
894 } |
894 } |
895 |
895 |
896 /* |
896 /* |
897 * Set MWM decorations. Set MWM functions depending on resizability. |
897 * Set MWM decorations. Set MWM functions depending on resizability. |
898 */ |
898 */ |
899 static void setMotifDecor(XWindowPeer window, boolean resizable, int decorations, int functions) { |
899 static void setMotifDecor(XWindow window, boolean resizable, int decorations, int functions) { |
900 /* Apparently some WMs don't implement MWM_*_ALL semantic correctly */ |
900 /* Apparently some WMs don't implement MWM_*_ALL semantic correctly */ |
901 if ((decorations & MWMConstants.MWM_DECOR_ALL) != 0 |
901 if ((decorations & MWMConstants.MWM_DECOR_ALL) != 0 |
902 && (decorations != MWMConstants.MWM_DECOR_ALL)) |
902 && (decorations != MWMConstants.MWM_DECOR_ALL)) |
903 { |
903 { |
904 decorations = normalizeMotifDecor(decorations); |
904 decorations = normalizeMotifDecor(decorations); |