2362N/A * Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * This class implements window which serves as content window for decorated frames. 0N/A * Its purpose to provide correct events dispatching for the complex 0N/A * constructs such as decorated frames. 92N/A * It should always be located at (- left inset, - top inset) in the associated 92N/A * decorated window. So coordinates in it would be the same as java coordinates. 92N/A // Fix for - set the location of the content window to the (-left inset, -top inset) 0N/A // A list of expose events that come when the parentFrame is iconified 0N/A return "Content window";
0N/A // We handle ConfigureNotify specifically in XDecoratedPeer 0N/A // We don't want SHOWN/HIDDEN on content window since it will duplicate XDecoratedPeer 0N/A // Coordinates are that of the shell 0N/A // Bounds of content window are of the same size as bounds of Java window and with 0N/A // location as -(insets) 0N/A // Change in the size of the content window means, well, change of the size 0N/A // Change in the location of the content window means change in insets 0N/A // NOTE: This method may be called by privileged threads. 0N/A // DO NOT INVOKE CLIENT CODE ON THIS THREAD! 0N/A // get rid of 'istanceof' by subclassing: 0N/A // XContentWindow -> XFrameContentWindow 0N/A // Expose event(s) that result from deiconification 0N/A // come before a deicinofication notification. 0N/A // We reorder these events by saving all expose events 0N/A // that come when the frame is iconified. Then we 0N/A // actually handle saved expose events on deiconification. 0N/A // Save expose events if the frame is iconified 0N/A // in order to handle them on deiconification. 0N/A // Normal case: [it is not a frame or] the frame is not iconified.