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

Print this page




 911             focusLogger.fine("the app is inactive, so the notification is ignored");
 912             return;
 913         }
 914 
 915         LWWindowPeer oppositePeer = (opposite == null)? null : opposite.getPeer();
 916         responder.handleWindowFocusEvent(gained, oppositePeer);
 917     }
 918 
 919     protected void deliverMoveResizeEvent(int x, int y, int width, int height,
 920                                         boolean byUser) {
 921         // when the content view enters the full-screen mode, the native
 922         // move/resize notifications contain a bounds smaller than
 923         // the whole screen and therefore we ignore the native notifications
 924         // and the content view itself creates correct synthetic notifications
 925         if (isFullScreenMode) {
 926             return;
 927         }
 928 
 929         final Rectangle oldB = nativeBounds;
 930         nativeBounds = new Rectangle(x, y, width, height);
 931         final GraphicsConfiguration oldGC = peer.getGraphicsConfiguration();
 932 
 933         final GraphicsConfiguration newGC = peer.getGraphicsConfiguration();
 934         // System-dependent appearance optimization.
 935         if (peer != null) {
 936             peer.notifyReshape(x, y, width, height);
 937         }
 938 
 939         if ((byUser && !oldB.getSize().equals(nativeBounds.getSize()))
 940             || isFullScreenAnimationOn || !Objects.equals(newGC, oldGC)) {
 941             flushBuffers();
 942         }
 943     }

 944 
 945     private void deliverWindowClosingEvent() {
 946         if (peer != null) {
 947             if (peer.getBlocker() == null)  {
 948                 peer.postEvent(new WindowEvent(target, WindowEvent.WINDOW_CLOSING));
 949             }
 950         }
 951     }
 952 
 953     private void deliverIconify(final boolean iconify) {
 954         if (peer != null) {
 955             peer.notifyIconify(iconify);
 956         }
 957     }
 958 
 959     private void deliverZoom(final boolean isZoomed) {
 960         if (peer != null) {
 961             peer.notifyZoom(isZoomed);
 962         }
 963     }
 964 
 965     private void deliverNCMouseDown() {
 966         if (peer != null) {
 967             peer.notifyNCMouseDown();
 968         }
 969     }




 911             focusLogger.fine("the app is inactive, so the notification is ignored");
 912             return;
 913         }
 914 
 915         LWWindowPeer oppositePeer = (opposite == null)? null : opposite.getPeer();
 916         responder.handleWindowFocusEvent(gained, oppositePeer);
 917     }
 918 
 919     protected void deliverMoveResizeEvent(int x, int y, int width, int height,
 920                                         boolean byUser) {
 921         // when the content view enters the full-screen mode, the native
 922         // move/resize notifications contain a bounds smaller than
 923         // the whole screen and therefore we ignore the native notifications
 924         // and the content view itself creates correct synthetic notifications
 925         if (isFullScreenMode) {
 926             return;
 927         }
 928 
 929         final Rectangle oldB = nativeBounds;
 930         nativeBounds = new Rectangle(x, y, width, height);




 931         if (peer != null) {
 932             peer.notifyReshape(x, y, width, height);
 933             // System-dependent appearance optimization.

 934             if ((byUser && !oldB.getSize().equals(nativeBounds.getSize()))
 935                     || isFullScreenAnimationOn) {
 936                 flushBuffers();
 937             }
 938         }
 939     }
 940 
 941     private void deliverWindowClosingEvent() {
 942         if (peer != null && peer.getBlocker() == null) {

 943             peer.postEvent(new WindowEvent(target, WindowEvent.WINDOW_CLOSING));

 944         }
 945     }
 946 
 947     private void deliverIconify(final boolean iconify) {
 948         if (peer != null) {
 949             peer.notifyIconify(iconify);
 950         }
 951     }
 952 
 953     private void deliverZoom(final boolean isZoomed) {
 954         if (peer != null) {
 955             peer.notifyZoom(isZoomed);
 956         }
 957     }
 958 
 959     private void deliverNCMouseDown() {
 960         if (peer != null) {
 961             peer.notifyNCMouseDown();
 962         }
 963     }