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

Print this page

        

*** 90,104 **** } public void enterFullScreenMode(final long nsWindowPtr) { CWrapper.NSView.enterFullScreenMode(ptr); - // REMIND: CGLSurfaceData expects top-level's size - // and therefore we need to account insets before - // recreating the surface data - Insets insets = peer.getInsets(); - Rectangle screenBounds; final long screenPtr = CWrapper.NSWindow.screen(nsWindowPtr); try { screenBounds = CWrapper.NSScreen.frame(screenPtr).getBounds(); } finally { --- 90,99 ----
*** 106,119 **** } // the move/size notification from the underlying system comes // but it contains a bounds smaller than the whole screen // and therefore we need to create the synthetic notifications ! peer.notifyReshape(screenBounds.x - insets.left, ! screenBounds.y - insets.bottom, ! screenBounds.width + insets.left + insets.right, ! screenBounds.height + insets.top + insets.bottom); } public void exitFullScreenMode() { CWrapper.NSView.exitFullScreenMode(ptr); } --- 101,112 ---- } // the move/size notification from the underlying system comes // but it contains a bounds smaller than the whole screen // and therefore we need to create the synthetic notifications ! peer.notifyReshape(screenBounds.x, screenBounds.y, screenBounds.width, ! screenBounds.height); } public void exitFullScreenMode() { CWrapper.NSView.exitFullScreenMode(ptr); }