From e0d503888872804a772b1479cbeb0934a01347a2 Mon Sep 17 00:00:00 2001 From: matthiasc Date: Mon, 19 Aug 2002 20:53:30 +0000 Subject: Moving towards EWMH 1.2. --- wm-spec/wm-spec.sgml | 213 ++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 192 insertions(+), 21 deletions(-) (limited to 'wm-spec') diff --git a/wm-spec/wm-spec.sgml b/wm-spec/wm-spec.sgml index da7c231..1727454 100644 --- a/wm-spec/wm-spec.sgml +++ b/wm-spec/wm-spec.sgml @@ -1,6 +1,6 @@ - + ]>
@@ -166,7 +166,7 @@ window and unmap the frames of those which are not on the current desktop. Unmapped windows should be placed in IconicState, according to the ICCCM. Windows which are actually iconified or minimized should have the _NET_WM_STATE_HIDDEN property set, to -communicate to pagers that the window should not be represented as +communicate to Pagers that the window should not be represented as "onscreen." @@ -216,14 +216,27 @@ manipulated within their parent window just like ordinary top-level windows on the root window. +Layered stacking order + +Some Window Managers keep the toplevel windows not in a single linear stack, +but subdivide the stack into several layers. There is a lot of variation +among the features of layered stacking order implementations. The number of +layers may or may not be fixed. The layer of a toplevel window may be explicit +and directly modifyable or derived from other properties of the window, e.g. +the type of the window. The stacking order may or may not +be strict, i.e. not allow the user to raise or lower windows beyond their +layer. + + + Scope of this spec This spec tries to address the following issues: Allow clients to influence their initial state with respect -to maximization, shading, stickyness, desktop. +to maximization, shading, stickyness, desktop, stacking order. Improve the Window Managers ability to vary window -decorations by allowing clients to hint the Window Manager about the type -of their windows. +decorations and maintain the stacking order by allowing clients to hint the +Window Manager about the type of their windows. Enable pagers and taskbars to be implemented as separate clients and allow them to work with any compliant Window Manager. @@ -232,7 +245,6 @@ clients and allow them to work with any compliant Window Manager.Other IPC mechanisms like ICE or Corba. Window Manager configuration. Window Manager documentation. -Geometry between desktops. Clients appearing on a proper subset of desktops. Window-in-window MDI. @@ -340,7 +352,7 @@ _NET_DESKTOP_VIEWPORT x, y, CARDINAL[][2]/32 ]]> Array of pairs of cardinals that define the top left corner of each desktops -viewport. For window managers that don't support large desktops, this MUST +viewport. For Window Managers that don't support large desktops, this MUST always be set to (0,0). @@ -401,7 +413,7 @@ _NET_ACTIVE_WINDOW, WINDOW/32 The window ID of the currently active window or None if no window has the focus. This is a read-only property set by the -window manager. If a client (for example, a taskbar) wants to activate +Window Manager. If a client (for example, a taskbar) wants to activate another window, it MUST send a _NET_ACTIVE_WINDOW client message to the root window: @@ -425,7 +437,7 @@ completely contained within the viewport. Work area SHOULD be used by desktop applications to place desktop icons appropriately. - The window manager SHOULD calculate this space by taking the current page minus space occupied by dock and panel windows, as indicated by the _NET_WM_STRUT property set on client windows. + The Window Manager SHOULD calculate this space by taking the current page minus space occupied by dock and panel windows, as indicated by the _NET_WM_STRUT property set on client windows. @@ -441,12 +453,12 @@ The Window Manager MUST set this property on the root window to be the ID of a have the _NET_WM_NAME property set to the name of the Window Manager. -Rationale: The child window is used to distinguish an active window manager +Rationale: The child window is used to distinguish an active Window Manager from a stale _NET_SUPPORTING_WM_CHECK property that happens to point to another window. If the _NET_SUPPORTING_WM_CHECK window on the client window is missing or not properly set, clients SHOULD assume that no conforming - window manager is present. + Window Manager is present. @@ -463,6 +475,138 @@ virtual roots and allows clients to figure out the WM frame windows of their windows. + + _NET_DESKTOP_LAYOUT + + #define _NET_WM_ORIENTATION_HORZ 0 + #define _NET_WM_ORIENTATION_VERT 1 + + #define _NET_WM_TOPLEFT 0 + #define _NET_WM_TOPRIGHT 1 + #define _NET_WM_BOTTOMRIGHT 2 + #define _NET_WM_BOTTOMLEFT 3 + + + This property is set by a Pager, not by the Window + Manager. + When setting this property, the Pager must own a manager selection (as + defined in the ICCCM 2.8). The manager selection is called + _NET_DESKTOP_LAYOUT_Sn where + n is the screen number. The purpose of + this property is to allow the Window Manager to know the desktop + layout displayed by the Pager. + + + _NET_DESKTOP_LAYOUT describes the layout of virtual + desktops relative to each other. More specifically, it describes the layout + used by the owner of the manager selection. The Window Manager may use + this layout information or may choose to ignore it. + The property contains four values: the Pager orientation, the number of + desktops in the X direction, the number in the Y direction, and the + starting corner of the layout, i.e. the corner containing the first desktop. + + + Note: In order to interoperate with Pagers implementing an earlier + draft of this document, Window Managers should accept a + _NET_DESKTOP_LAYOUT property of length 3 and + use _NET_WM_TOPLEFT as the starting corner in this case. + + + The virtual desktops are arranged in a rectangle + with X rows and Y columns. If X times Y does not match the total number of + desktops as specified by + _NET_NUMBER_OF_DESKTOPS, the highest-numbered + workspaces are assumed to be nonexistent. Either X or Y (but not + both) may be specified as 0 in which case its actual value will be + derived from _NET_NUMBER_OF_DESKTOPS. + + + When the orientation is _NET_WM_ORIENTATION_HORZ + the desktops are layed out in rows, with the first desktop in the + specified starting corner. So a layout with X=4 and Y=3 starting in + the _NET_WM_TOPLEFT corner looks like this: + + +--+--+--+--+ + | 0| 1| 2| 3| + +--+--+--+--+ + | 4| 5| 6| 7| + +--+--+--+--+ + | 8| 9|10|11| + +--+--+--+--+ + +With starting_corner _NET_WM_BOTTOMRIGHT, it looks like +this: + + +--+--+--+--+ + |11|10| 9| 8| + +--+--+--+--+ + | 7| 6| 5| 4| + +--+--+--+--+ + | 3| 2| 1| 0| + +--+--+--+--+ + + + + + + When the orientation is _NET_WM_ORIENTATION_VERT + the layout for X=4 and Y=3 starting in the _NET_WM_TOPLEFT + corner looks like: + + + +--+--+--+--+ + | 0| 3| 6| 9| + +--+--+--+--+ + | 1| 4| 7|10| + +--+--+--+--+ + | 2| 5| 8|11| + +--+--+--+--+ + +With starting_corner _NET_WM_TOPRIGHT, it looks like: + + + +--+--+--+--+ + | 9| 6| 3| 0| + +--+--+--+--+ + |10| 7| 4| 1| + +--+--+--+--+ + |11| 8| 5| 2| + +--+--+--+--+ + + + + The numbers here are the desktop numbers, as for + _NET_CURRENT_DESKTOP. + + + + _NET_SHOWING_DESKTOP + + + Some Window Managers have a "showing the desktop" mode in which windows + are hidden, and the desktop background is displayed and focused. If a + Window Manager supports the _NET_SHOWING_DESKTOP hint, it MUST set it + to a value of 1 if the Window Manager is in "showing the desktop" mode, + and a value of zero if the Window Manager is not in this mode. + + + If a Pager wants to enter or leave the mode, it MUST + send a _NET_SHOWING_DESKTOP client message to the root window + requesting the change: + + The Window Manager may choose to ignore this client message. + + + Other Root Window Messages @@ -485,7 +629,7 @@ _NET_CLOSE_WINDOW The Window Manager MUST then attempt to close the window specified. - Rationale: A window manager might be more clever than the usual method (send WM_DELETE message if the protocol is selected, XKillClient otherwise). It might introduce a timeout, for example. Instead of duplicating the code, the Window Manager can easily do the job. + Rationale: A Window Manager might be more clever than the usual method (send WM_DELETE message if the protocol is selected, XKillClient otherwise). It might introduce a timeout, for example. Instead of duplicating the code, the Window Manager can easily do the job. _NET_WM_MOVERESIZE _NET_WM_DESKTOP , CARDINAL/32 +_NET_WM_DESKTOP desktop, CARDINAL/32 ]]> Cardinal to determine the desktop the window is in (or wants to be) starting @@ -737,6 +881,7 @@ _NET_WM_STATE_SKIP_TASKBAR, ATOM _NET_WM_STATE_SKIP_PAGER, ATOM _NET_WM_STATE_HIDDEN, ATOM _NET_WM_STATE_FULLSCREEN, ATOM +_NET_WM_STATE_FLOATING, ATOM ]]> An implementation MAY add new atoms to this list. Implementations @@ -771,9 +916,9 @@ window. _NET_WM_STATE_SKIP_PAGER indicates that the window should not be -included on a pager. This hint should be requested by the application, +included on a Pager. This hint should be requested by the application, i.e. it indicates that the window by nature is never in the -pager. Applications should not set this hint if _NET_WM_WINDOW_TYPE +Pager. Applications should not set this hint if _NET_WM_WINDOW_TYPE already conveys the exact nature of the window. @@ -800,6 +945,14 @@ _NET_WM_STATE_FULLSCREEN indicates that the window should fill the entire screen and have no window decorations. For example, a presentation program would use this hint. + +_NET_WM_STATE_FLOATING indicates that the window should be on top of other +windows of the same type. Applications should not set this hint +if _NET_WM_WINDOW_TYPE already conveys the exact nature of the window. +Windows in this state would typically appear above other windows of the same +_NET_WM_WINDOW_TYPE. + + To change the state of a mapped window, a Client MUST send a _NET_WM_STATE client message to the root window (window is the respective window, type @@ -831,7 +984,7 @@ this window. Atoms present in the list indicate allowed actions, atoms not present in the list indicate actions that are not supported for this window. The window manager MUST keep this property updated to reflect the actions which are currently "active" or "sensitive" for a window. -Taskbars, pagers, and other tools use _NET_WM_ALLOWED_ACTIONS to +Taskbars, Pagers, and other tools use _NET_WM_ALLOWED_ACTIONS to decide which actions should be made available to the user. @@ -844,6 +997,7 @@ _NET_WM_ACTION_SHADE, ATOM _NET_WM_ACTION_STICK, ATOM _NET_WM_ACTION_MAXIMIZE_HORZ, ATOM _NET_WM_ACTION_MAXIMIZE_VERT, ATOM +_NET_WM_ACTION_FULLSCREEN, ATOM _NET_WM_ACTION_CHANGE_DESKTOP, ATOM _NET_WM_ACTION_CLOSE, ATOM ]]> @@ -854,15 +1008,15 @@ them from the list. These extension atoms MUST NOT start with the prefix _NET. -Note that the actions listed here are those that the window -manager will honor for this window. The operations must still be +Note that the actions listed here are those that the Window +Manager will honor for this window. The operations must still be requested through the normal mechanisms outlined in this specification. For example, _NET_WM_ACTION_CLOSE does not mean that clients can send a WM_DELETE_WINDOW message to this window; it means that clients can use a -_NET_CLOSE_WINDOW message to ask the window manager to do so. +_NET_CLOSE_WINDOW message to ask the Window Manager to do so. -Window managers SHOULD ignore the value of _NET_WM_ALLOWED_ACTIONS when they +Window Managers SHOULD ignore the value of _NET_WM_ALLOWED_ACTIONS when they initially manage a window. This value may be left over from a previous window manager with different policies. @@ -889,6 +1043,10 @@ _NET_WM_ACTION_MAXIMIZE_HORZ indicates that the window may be maximized horizont _NET_WM_ACTION_MAXIMIZE_VERT indicates that the window may be maximized vertically. +_NET_WM_ACTION_FULLSCREEN indicates that the window may be brought to + fullscreen mode. + + _NET_WM_ACTION_CHANGE_DESKTOP indicates that the window may be moved between desktops. @@ -1312,7 +1470,11 @@ was the frame for this window. Window-in-Window MDI - The authors of this specification acknowledge that there is no standard method to allow the Window Manager to manage windows that are part of a Window-in-Window MDI application. Application authors are advised to use some other form of MDI, or to propose a mechanism to be included in the next revision of this specification. + The authors of this specification acknowledge that there is no standard + method to allow the Window Manager to manage windows that are part of a + Window-in-Window MDI application. Application authors are advised to + use some other form of MDI, or to propose a mechanism to be included in + a future revision of this specification. @@ -1463,6 +1625,15 @@ OR OTHER DEALINGS IN THE SOFTWARE. Added advice on removing _NET_WM_STATE and _NET_WM_DESKTOP when a window is withdrawn. + + Added _NET_DESKTOP_LAYOUT to allow a Pager to specify inter-desktop geometry. + + + Added _NET_SHOWING_DESKTOP. + + + Added _NET_WM_STATE_FLOATING. + -- cgit v1.2.3-70-g09d2