Lines Matching defs:decorations

832      * to be subtracted from the decorations.  Normalize decoration spec
836 static int normalizeMotifDecor(int decorations) {
837 if ((decorations & MWMConstants.MWM_DECOR_ALL) == 0) {
838 return decorations;
844 d &= ~decorations;
868 * Infer OL properties from MWM decorations.
871 static void setOLDecor(XWindow window, boolean resizable, int decorations) {
877 decorations = normalizeMotifDecor(decorations);
878 if (insLog.isLoggable(PlatformLogger.FINER)) insLog.finer("Setting OL_DECOR to " + Integer.toBinaryString(decorations));
879 if ((decorations & MWMConstants.MWM_DECOR_TITLE) == 0) {
882 if ((decorations & (MWMConstants.MWM_DECOR_RESIZEH | MWMConstants.MWM_DECOR_MAXIMIZE)) == 0) {
885 if ((decorations & (MWMConstants.MWM_DECOR_MENU |
901 * Set MWM decorations. Set MWM functions depending on resizability.
903 static void setMotifDecor(XWindow window, boolean resizable, int decorations, int functions) {
905 if ((decorations & MWMConstants.MWM_DECOR_ALL) != 0
906 && (decorations != MWMConstants.MWM_DECOR_ALL))
908 decorations = normalizeMotifDecor(decorations);
921 hints.set_decorations(decorations);
930 * window manager decorations.
954 int decorations = window.getDecorations();
959 if ((decorations & MWMConstants.MWM_DECOR_ALL) != 0) {
960 decorations |= MWMConstants.MWM_DECOR_RESIZEH | MWMConstants.MWM_DECOR_MAXIMIZE;
962 decorations &= ~(MWMConstants.MWM_DECOR_RESIZEH | MWMConstants.MWM_DECOR_MAXIMIZE);
965 setMotifDecor(window, resizable, decorations, functions);
966 setOLDecor(window, resizable, decorations);
1000 /* Restore decorations */
1009 * If justChangeSize is false, update decorations as well.
1027 if (!justChangeSize) { /* update decorations */