Lines Matching defs:window

47  * Class incapsulating knowledge about window managers in general
48 * Descendants should provide some information about specific window manager.
231 * If *any* window manager is running?
253 * having a window manager running. I.e. it does not reparent
317 * Enlightenment uses STRING property for its comms window id. Gaaa!
321 static long getECommsWindowIDProperty(long window) {
328 new WindowPropertyGetter(window, XA_ENLIGHTENMENT_COMMS, 0, 14, false,
358 log.finer("Enlightenment communication window " + winid);
402 * _DT_SM_STATE_INFO(_DT_SM_STATE_INFO) on that window.
440 /* Now check that this window has _DT_SM_STATE_INFO (ignore contents) */
477 * _DT_SM_STATE_INFO(_DT_SM_STATE_INFO) on that window.
510 /* Now check that this window has _DT_WORKSPACE_CURRENT */
518 // and that is still MWM. So simply check for the validity of this window
701 * Make an educated guess about running window manager.
810 static void removeSizeHints(XDecoratedPeer window, long mask) {
815 XSizeHints hints = window.getHints();
823 window.getWindow(),
871 static void setOLDecor(XWindow window, boolean resizable, int decorations) {
872 if (window == null) {
893 XA_OL_DECOR_DEL.DeleteProperty(window);
896 XA_OL_DECOR_DEL.setAtomListProperty(window, decorDel);
903 static void setMotifDecor(XWindow window, boolean resizable, int decorations, int functions) {
916 PropMwmHints hints = window.getMWMHints();
924 window.setMWMHints(hints);
928 * Under some window managers if shell is already mapped, we MUST
930 * window manager decorations.
934 * widget which is positioned (partially) off-screen, the window is
937 * (re)map will move the window to the origin, and any subsequent
938 * (re)map will relocate the window at some other point on the screen.
943 static boolean needRemap(XDecoratedPeer window) {
946 return !window.isEmbedded();
953 static void setShellDecor(XDecoratedPeer window) {
954 int decorations = window.getDecorations();
955 int functions = window.getFunctions();
956 boolean resizable = window.isResizable();
965 setMotifDecor(window, resizable, decorations, functions);
966 setOLDecor(window, resizable, decorations);
968 /* Some WMs need remap to redecorate the window */
969 if (window.isShowing() && needRemap(window)) {
975 window.xSetVisible(false);
977 window.xSetVisible(true);
984 static void setShellResizable(XDecoratedPeer window) {
985 if (insLog.isLoggable(PlatformLogger.FINE)) insLog.fine("Setting shell resizable " + window);
988 Rectangle shellBounds = window.getShellBounds();
989 shellBounds.translate(-window.currentInsets.left, -window.currentInsets.top);
990 window.updateSizeHints(window.getDimensions());
991 requestWMExtents(window.getWindow());
992 XlibWrapper.XMoveResizeWindow(XToolkit.getDisplay(), window.getShell(),
997 removeSizeHints(window, XUtilConstants.PMaxSize);
998 window.updateMinimumSize();
1001 setShellDecor(window);
1010 * @param shellBounds bounds of the shell window
1012 static void setShellNotResizable(XDecoratedPeer window, WindowDimensions newDimensions, Rectangle shellBounds,
1015 if (insLog.isLoggable(PlatformLogger.FINE)) insLog.fine("Setting non-resizable shell " + window + ", dimensions " + newDimensions +
1021 window.updateSizeHints(newDimensions);
1022 requestWMExtents(window.getWindow());
1024 XlibWrapper.XMoveResizeWindow(XToolkit.getDisplay(), window.getShell(),
1028 setShellDecor(window);
1114 int getExtendedState(XWindowPeer window) {
1117 state |= proto.getState(window);
1128 * Notice window state change when WM changes a property on the window ...
1134 * Check if property change is a window state protocol message.
1136 boolean isStateChange(XDecoratedPeer window, XPropertyEvent e) {
1137 if (!window.isShowing()) {
1142 int wm_state = window.getWMState();
1162 * Returns current state (including extended) of a given window.
1164 int getState(XDecoratedPeer window) {
1166 final int wm_state = window.getWMState();
1172 res |= getExtendedState(window);
1178 * Setting/changing window state ...
1183 * Moves window to the specified layer, layer is one of the constants defined
1186 void setLayer(XWindowPeer window, int layer) {
1189 proto.setLayer(window, layer);
1195 void setExtendedState(XWindowPeer window, int state) {
1198 proto.setState(window, state);
1203 if (!window.isShowing()) {
1211 window.getWindow(),
1214 window.getWindow(),
1230 * window it can reparent it into a "pre-shaded" decoration frame
1239 void unshadeKludge(XDecoratedPeer window) {
1240 assert(window.isShowing());
1243 proto.unshadeKludge(window);
1288 Insets guessInsets(XDecoratedPeer window) {
1289 Insets res = (Insets)storedInsets.get(window.getClass());
1312 * Some buggy WMs ignore window gravity when processing
1313 * ConfigureRequest and position window as if the gravity is Static.
1370 public static Insets getInsetsFromExtents(long window) {
1371 if (window == XConstants.None) {
1376 Insets insets = getInsetsFromProp(window, XA_NET_FRAME_EXTENTS);
1385 return getInsetsFromProp(window, XA_KDE_NET_WM_FRAME_STRUT);
1387 return getInsetsFromProp(window, XA_E_FRAME_SIZE);
1397 public static Insets getInsetsFromProp(long window, XAtom atom) {
1398 if (window == XConstants.None) {
1403 new WindowPropertyGetter(window, atom,
1424 * Asks WM to fill Frame Extents (insets) for the window.
1426 public static void requestWMExtents(long window) {
1427 if (window == XConstants.None) { // not initialized
1437 msg.set_window(window);
1463 /* syncTopLEvelPos() is necessary to insure that the window manager has in
1464 * fact moved us to our final position relative to the reParented WM window.
1465 * We have noted a timing window which our shell has not been moved so we
1468 * @param window window ID of the shell, assuming it is the window
1472 boolean syncTopLevelPos(long window, XWindowAttributes attrs) {
1477 XlibWrapper.XGetWindowAttributes(XToolkit.getDisplay(), window, attrs.pData);
1491 Insets getInsets(XDecoratedPeer win, long window, long parent) {
1497 * window, so we check if we can get away with just
1509 * parent window is the WM frame
1517 Insets correctWM = XWM.getInsetsFromExtents(window);
1537 * Now get the actual dimensions of the parent window
1570 syncTopLevelPos(window, lwinAttr);
1582 window, lwinAttr.pData);
1595 * top-level assume taht it's the "lining" window and
1607 lwinAttr, pattr, parent, window);
1635 lwinAttr, pattr, parent, window);
1667 * Sets _NET_WN_ICON property on the window using the arrays of
1675 public boolean setNetWMIcon(XWindowPeer window, java.util.List<IconInfo> icons) {
1677 g_net_protocol.setWMIcons(window, icons);