From 3d35ec42c00e4f4e3951e997cbfa71f5cdf2adb1 Mon Sep 17 00:00:00 2001 From: matthiasc Date: Tue, 11 Jun 2002 21:18:30 +0000 Subject: Applied moveresize and cleanup patches. --- wm-spec/wm-spec.sgml | 68 ++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 61 insertions(+), 7 deletions(-) (limited to 'wm-spec') diff --git a/wm-spec/wm-spec.sgml b/wm-spec/wm-spec.sgml index 4755f84..da7c231 100644 --- a/wm-spec/wm-spec.sgml +++ b/wm-spec/wm-spec.sgml @@ -1,6 +1,6 @@ - + ]>
@@ -496,12 +496,24 @@ _NET_WM_MOVERESIZE data.l[0] = x_root data.l[1] = y_root data.l[2] = direction + data.l[3] = button ]]> - This message allows an application to initiate window movement or resizing. This allows the application to define its own move and size "grips", whilst letting the window manager control the actual move/resize. This means that all moves / resizes can happen in a consistent manner as defined by the WM. + This message allows an application to initiate window movement or + resizing. This allows the application to define its own move and size + "grips", whilst letting the window manager control the actual operation. + This means that all moves/resizes can happen in a consistent manner as + defined by the WM. - When sending this message, x_root and y_root MUST indicate the position of the mouse click with respect to the root window and direction MUST indicate whether this is a move or resize event, and if it is a resize event, which edges of the window the size grip applies to. + When sending this message in response to a button press event, button + SHOULD indicate the button which was pressed, x_root and y_root MUST + indicate the position of the button press with respect to the root + window and direction MUST indicate whether this is a move or resize + event, and if it is a resize event, which edges of the window the size + grip applies to. When sending this message in response to a key event, + the direction MUST indicate wether this this is a move or resize event + and the other fields are unused. - The client MUST release all grabs on Pointer events, prior to sending such message. + The Client MUST release all grabs prior to sending such message. + + The Window Manager can use the button field to determine the + events on which it terminates the operation initiated by the + _NET_WM_MOVERESIZE message. Since there is a race condition between + client sending the _NET_WM_MOVERESIZE message and the user releasing + the button, Window Managers are advised to offer some other means to + terminate the operation, e.g. by pressing the ESC key. + @@ -576,8 +598,20 @@ indicates that the window SHOULD appear on all desktops/workspaces. The Window Manager should honor _NET_WM_DESKTOP whenever a withdrawn window -requests to be mapped. +requests to be mapped. + + +The Window Manager should remove the property whenever +a window is withdrawn, but it should leave the property in place when it is +shutting down, e.g. in response to losing ownership of the WM_Sn manager +selection. + +Rationale: Removing the property upon window withdrawal helps legacy +applications which want to reuse withdrawn windows. Not removing the property +upon shutdown allows the next Window Manager to restore windows to their +previous desktops. + A Client can request a change of desktop for a non-withdrawn window by sending a _NET_WM_DESKTOP client message to the root window: @@ -678,6 +712,18 @@ wishing to change the state of a window MUST send a _NET_WM_STATE client message to the root window (see below). The Window Manager MUST keep this property updated to reflect the current state of the window. + +The Window Manager should remove the property whenever +a window is withdrawn, but it should leave the property in place when it is +shutting down, e.g. in response to losing ownership of the WM_Sn manager +selection. + + +Rationale: Removing the property upon window withdrawal helps legacy +applications which want to reuse withdrawn windows. Not removing the property +upon shutdown allows the next Window Manager to restore windows to their +previous state. + Possible atoms are: @@ -1328,7 +1374,7 @@ int net_get_hostname (char *buf, size_t maxlen) Copyright -Copyright (C) 2000 See Contributors List +Copyright (C) 2000, 2001, 2002 See Contributors List Permission is hereby granted, free of charge, to any person @@ -1409,6 +1455,14 @@ OR OTHER DEALINGS IN THE SOFTWARE. regarding IconicState, using _NET_WM_STATE_HIDDEN to avoid confusion. Added implementation note for pagers on when to display a window. + + Added button field and new directions for keyboard-initiated actions + to the _NET_WM_MOVERESIZE message. + + + Added advice on removing _NET_WM_STATE and _NET_WM_DESKTOP when a window + is withdrawn. + -- cgit v1.2.3-70-g09d2