src/java.desktop/unix/classes/sun/awt/X11/XWindowPeer.java
changeset 49998 9070717a16a1
parent 47827 f2238a5326e7
child 52248 2e330da7cbf4
equal deleted inserted replaced
49997:0540b802b24e 49998:9070717a16a1
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   553     //       DO NOT INVOKE CLIENT CODE ON THIS THREAD!
   553     //       DO NOT INVOKE CLIENT CODE ON THIS THREAD!
   554     public void handleStateChange(int oldState, int newState) {
   554     public void handleStateChange(int oldState, int newState) {
   555         postEvent(new WindowEvent((Window)target,
   555         postEvent(new WindowEvent((Window)target,
   556                                   WindowEvent.WINDOW_STATE_CHANGED,
   556                                   WindowEvent.WINDOW_STATE_CHANGED,
   557                                   oldState, newState));
   557                                   oldState, newState));
   558     }
       
   559 
       
   560     /**
       
   561      * DEPRECATED:  Replaced by getInsets().
       
   562      */
       
   563     public Insets insets() {
       
   564         return getInsets();
       
   565     }
   558     }
   566 
   559 
   567     boolean isAutoRequestFocus() {
   560     boolean isAutoRequestFocus() {
   568         if (XToolkit.isToolkitThread()) {
   561         if (XToolkit.isToolkitThread()) {
   569             return AWTAccessor.getWindowAccessor().isAutoRequestFocus((Window)target);
   562             return AWTAccessor.getWindowAccessor().isAutoRequestFocus((Window)target);