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

Print this page

        

*** 413,424 **** return null; } @Override // PlatformWindow public Insets getInsets() { ! final Insets insets = nativeGetNSWindowInsets(getNSWindowPtr()); ! return insets; } @Override // PlatformWindow public Point getLocationOnScreen() { return new Point(nativeBounds.x, nativeBounds.y); --- 413,423 ---- return null; } @Override // PlatformWindow public Insets getInsets() { ! return nativeGetNSWindowInsets(getNSWindowPtr()); } @Override // PlatformWindow public Point getLocationOnScreen() { return new Point(nativeBounds.x, nativeBounds.y);
*** 726,740 **** --- 725,741 ---- } @Override public void enterFullScreenMode() { isFullScreenMode = true; + peer.updateInsets(new Insets(0, 0, 0, 0)); contentView.enterFullScreenMode(getNSWindowPtr()); } @Override public void exitFullScreenMode() { + peer.updateInsets(getInsets()); contentView.exitFullScreenMode(); isFullScreenMode = false; } @Override
*** 870,879 **** --- 871,882 ---- // and the content view itself creates correct synthetic notifications if (isFullScreenMode) { return; } + peer.updateInsets(getInsets()); + final Rectangle oldB = nativeBounds; nativeBounds = new Rectangle(x, y, width, height); peer.notifyReshape(x, y, width, height); if (byUser && !oldB.getSize().equals(nativeBounds.getSize())) { flushBuffers();
*** 972,1001 **** if (checkBlocking()) return; // If it's not blocked, make sure it's above its siblings orderAboveSiblings(); } - - private void updateDisplay() { - EventQueue.invokeLater(new Runnable() { - public void run() { - validateSurface(); - } - }); - } - - private void updateWindowContent() { - ComponentEvent resizeEvent = new ComponentEvent(target, ComponentEvent.COMPONENT_RESIZED); - SunToolkit.postEvent(SunToolkit.targetToAppContext(target), resizeEvent); - } - - private void windowWillEnterFullScreen() { - updateWindowContent(); - } - private void windowDidEnterFullScreen() { - updateDisplay(); - } - private void windowWillExitFullScreen() { - updateWindowContent(); - } - private void windowDidExitFullScreen() {} } --- 975,980 ----