src/solaris/classes/sun/awt/X11/XWindowPeer.java

Print this page

        

*** 230,239 **** --- 230,249 ---- focusLog.fine("Owner is " + owner); focusLog.fine("Owner peer is " + ownerPeer); focusLog.fine("Owner X window " + Long.toHexString(ownerPeer.getWindow())); focusLog.fine("Owner content X window " + Long.toHexString(ownerPeer.getContentWindow())); } + + if (!isSimpleWindow()) { + XNETProtocol protocol = XWM.getWM().getNETProtocol(); + if (protocol != null && protocol.active()) { + XAtomList net_wm_state = getNETWMState(); + net_wm_state.add(protocol.XA_NET_WM_STATE_SKIP_TASKBAR); + setNETWMState(net_wm_state); + } + } + // as owner window may be an embedded window, we must get a toplevel window // to set as TRANSIENT_FOR hint long ownerWindow = ownerPeer.getWindow(); if (ownerWindow != 0) { XToolkit.awtLock();
*** 478,495 **** XSizeHints hints = getHints(); setSizeHints(hints.get_flags() | XUtilConstants.PPosition | XUtilConstants.PSize, bounds.x, bounds.y, bounds.width, bounds.height); XWM.setMotifDecor(this, false, 0, 0); - XNETProtocol protocol = XWM.getWM().getNETProtocol(); - if (protocol != null && protocol.active()) { - XAtomList net_wm_state = getNETWMState(); - net_wm_state.add(protocol.XA_NET_WM_STATE_SKIP_TASKBAR); - setNETWMState(net_wm_state); - } - - boolean isResized = !bounds.getSize().equals(oldBounds.getSize()); boolean isMoved = !bounds.getLocation().equals(oldBounds.getLocation()); if (isMoved || isResized) { repositionSecurityWarning(); } --- 488,497 ----