< prev index next >

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

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 230,239 **** --- 230,240 ---- private volatile boolean isFullScreenMode; private boolean isFullScreenAnimationOn; private volatile boolean isInFullScreen; private volatile boolean isIconifyAnimationActive; + private volatile boolean isZoomed; private Window target; private LWWindowPeer peer; protected CPlatformView contentView; protected CPlatformWindow owner;
*** 504,514 **** nativeSetNSWindowStandardFrame(getNSWindowPtr(), x, y, w, h); } private boolean isMaximized() { return undecorated ? this.normalBounds != null ! : CWrapper.NSWindow.isZoomed(getNSWindowPtr()); } private void maximize() { if (peer == null || isMaximized()) { return; --- 505,515 ---- nativeSetNSWindowStandardFrame(getNSWindowPtr(), x, y, w, h); } private boolean isMaximized() { return undecorated ? this.normalBounds != null ! : isZoomed; } private void maximize() { if (peer == null || isMaximized()) { return;
*** 972,981 **** --- 973,983 ---- responder.handleWindowFocusEvent(gained, oppositePeer); } protected void deliverMoveResizeEvent(int x, int y, int width, int height, boolean byUser) { + isZoomed = CWrapper.NSWindow.isZoomed(getNSWindowPtr()); checkZoom(); final Rectangle oldB = nativeBounds; nativeBounds = new Rectangle(x, y, width, height); if (peer != null) {
< prev index next >