src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java

Print this page

        

*** 296,306 **** styleBits = SET(styleBits, MODAL_EXCLUDED, true); } // If the target is a dialog, popup or tooltip we want it to ignore the brushed metal look. if (isPopup) { ! styleBits = SET(styleBits, TEXTURED, true); // Popups in applets don't activate applet's process styleBits = SET(styleBits, NONACTIVATING, true); } if (Window.Type.UTILITY.equals(target.getType())) { --- 296,306 ---- styleBits = SET(styleBits, MODAL_EXCLUDED, true); } // If the target is a dialog, popup or tooltip we want it to ignore the brushed metal look. if (isPopup) { ! styleBits = SET(styleBits, TEXTURED, false); // Popups in applets don't activate applet's process styleBits = SET(styleBits, NONACTIVATING, true); } if (Window.Type.UTILITY.equals(target.getType())) {
*** 370,379 **** --- 370,381 ---- if (prop != null) { styleBits = SET(styleBits, DRAGGABLE_BACKGROUND, Boolean.parseBoolean(prop.toString())); } } + peer.setTextured(IS(TEXTURED, styleBits)); + return styleBits; } // this is the counter-point to -[CWindow _nativeSetStyleBit:] protected void setStyleBits(final int mask, final boolean value) {
*** 731,741 **** } @Override public void setOpaque(boolean isOpaque) { CWrapper.NSWindow.setOpaque(getNSWindowPtr(), isOpaque); ! if (!isOpaque) { long clearColor = CWrapper.NSColor.clearColor(); CWrapper.NSWindow.setBackgroundColor(getNSWindowPtr(), clearColor); } //This is a temporary workaround. Looks like after 7124236 will be fixed --- 733,743 ---- } @Override public void setOpaque(boolean isOpaque) { CWrapper.NSWindow.setOpaque(getNSWindowPtr(), isOpaque); ! if (!isOpaque && !peer.isTextured()) { long clearColor = CWrapper.NSColor.clearColor(); CWrapper.NSWindow.setBackgroundColor(getNSWindowPtr(), clearColor); } //This is a temporary workaround. Looks like after 7124236 will be fixed