Lines Matching defs:window

87     // value of WM_TRANSIENT_FOR hint set on this window
92 private boolean isMapped = false; // Is this window mapped or not
101 private boolean isUnhiding = false; // Is the window unhiding.
102 private boolean isBeforeFirstMapNotify = false; // Is the window (being shown) between
106 * The type of the window.
184 Color background = SystemColor.window;
231 focusLog.fine("Owner X window " + Long.toHexString(ownerPeer.getWindow()));
232 focusLog.fine("Owner content X window " + Long.toHexString(ownerPeer.getContentWindow()));
234 // as owner window may be an embedded window, we must get a toplevel window
271 // Init warning window(for applets)
274 // and TrayIcon balloon windows without a warning window.
476 //the window but fails to revalidate, Sol-CDE
566 * Retrives real native focused window and converts it into Java peer.
576 * Retrives real native focused window and converts it into Java window.
602 * Returns whether or not this window peer has native X window
603 * configured as non-focusable window. It might happen if:
604 * - Java window is non-focusable
605 * - Java window is simple Window(not Frame or Dialog)
778 if (focusLog.isLoggable(PlatformLogger.FINE)) focusLog.fine("Requesting window focus");
810 // If this window is non-focusable don't post any java focus event
824 // If this window is non-focusable don't post any java focus event
832 // Check if opposite window is non-focusable. In that case we don't want to
949 // add root window property listener:
958 Get XID of closest to root window in a given window hierarchy.
1042 // "Iconic -> Withdrawn - The client should unmap the window and follow it
1048 unmap.set_window(window);
1081 // The height of menu bar window
1092 // NOTE: On KWin if the window/border snapping option is enabled,
1093 // the Java window may be swinging while it's being moved.
1096 // Warning window in order to exclude it from the snapping option.
1128 return; // The warning window should already be hidden.
1168 grabLog.fine("Generating UngrabEvent on {0} because of the window disposal", this);
1320 focusLog.fine("Automatically request focus on window");
1382 * Override this methods to get notifications when top-level window state changes. The state is
1388 // If this window is modal blocked, it is put into the transient_for
1391 // different WM states (except for owner-window relationship), so
1392 // if the window changes its state, its real WM_TRANSIENT_FOR hint
1461 // XQueryTree returns window children ordered by z-order
1475 // if WM has not handled transient for hint for a child window,
1522 throw new IllegalStateException("Trying to unblock window blocked by another dialog");
1541 * Sets the TRANSIENT_FOR hint to the given top-level window. This
1542 * method is used when a window is modal blocked/unblocked or
1544 * If window or transientForWindow are embedded frames, the containing
1547 * @param window specifies the top-level window that the hint
1549 * @param transientForWindow the top-level window
1553 * is set regardless of the state of window and transientForWindow,
1556 static void setToplevelTransientFor(XWindowPeer window, XWindowPeer transientForWindow,
1559 if ((window == null) || (transientForWindow == null)) {
1563 window.prevTransientFor = transientForWindow;
1564 transientForWindow.nextTransientFor = window;
1566 if (window.curRealTransientFor == transientForWindow) {
1569 if (!allStates && (window.getWMState() != transientForWindow.getWMState())) {
1572 if (window.getScreenNumber() != transientForWindow.getScreenNumber()) {
1575 long bpw = window.getWindow();
1584 window.curRealTransientFor = transientForWindow;
1588 * This method does nothing if this window is not blocked by any modal dialog.
1590 * prevTransiendFor window that is in the same state (Normal/Iconified/Withdrawn)
1591 * as this one and makes this window transient for it. The same operation is
1592 * performed for nextTransientFor window.
1616 * Removes the TRANSIENT_FOR hint from the given top-level window.
1617 * If window or transientForWindow are embedded frames, the containing
1620 * @param window specifies the top-level window that the hint
1623 private static void removeTransientForHint(XWindowPeer window) {
1625 long bpw = window.getWindow();
1630 window.curRealTransientFor = null;
1635 * a chain in such a way that each window is a transient_for window for
1639 * This method adds this top-level window to the chain of the given modal
1641 * XQueryTree to find the place to insert this window to. As each window
1645 * If this window is a modal dialog and has its own chain, these chains are
1684 // this window chain iterator
1685 // each window can be blocked no more than once, so this window
1691 // if there are no windows blocked by modalBlocker, simply add this window
1738 static void restoreTransientFor(XWindowPeer window) {
1739 XWindowPeer ownerPeer = window.getOwnerPeer();
1741 setToplevelTransientFor(window, ownerPeer, false, true);
1743 removeTransientForHint(window);
1748 * When a window is modally unblocked, it should be removed from its blocker
1751 * The problem is that we cannot simply restore window's original
1754 * of two other chains in addToTransientFors. In that case, if this window is
1758 * window is currently in, into two chains. First chain is this window own
1764 * W1-B1 (window W1 is blocked by B1)
1765 * W2-B2 (window W2 is blocked by B2)
1769 * W1-B1 (window W1 is blocked by B1)
1770 * W2-B2-B3 (window W2 is blocked by B2 and B2 is blocked by B3)
1778 // the head of the chain of this window
1781 // nextTransientFor is always not null as this window is in the chain
1816 static Window getDecoratedOwner(Window window) {
1817 while ((null != window) && !(window instanceof Frame || window instanceof Dialog)) {
1818 window = (Window) AWTAccessor.getComponentAccessor().getParent(window);
1820 return window;
1833 focusLog.fine("Request for window focus");
1841 focusLog.fine("The window is unmapped, so rejecting the request");
1845 focusLog.fine("Parent window is active - generating focus for this window");
1849 focusLog.fine("Parent window is not active");
1853 focusLog.fine("Parent window accepted focus request - generating focus for this window");
1856 focusLog.fine("Denied - parent window is not active and didn't accept focus request");
1865 * Applies the current window type.
1927 long window = getWindow();
1928 if (window != 0) {
1929 XDropTargetRegistry.getRegistry().registerDropSite(window);
1943 long window = getWindow();
1944 if (window != 0) {
1945 XDropTargetRegistry.getRegistry().unregisterDropSite(window);
2016 long window = getWindow();
2017 if (window != 0) {
2018 XDropTargetRegistry.getRegistry().unregisterDropSite(window);
2019 XDropTargetRegistry.getRegistry().registerDropSite(window);
2048 // When window is grabbed, all events are dispatched to
2052 // Note that we need to retarget XCrossingEvents to content window
2081 // When window is grabbed, all events are dispatched to
2088 // to underlying window, not to window on which we have initiated drag
2135 // When window is grabbed, all events are dispatched to
2167 // Target is either us or our content window -
2173 // when press occurs outside of the window and not on its owned windows
2204 // target doesn't map to XAWT window - outside of hierarchy