From 71ac2cb2b4ffc7a5190e970456e27ec6a3b7ec40 Mon Sep 17 00:00:00 2001 From: llunak Date: Wed, 7 Jan 2004 09:57:48 +0000 Subject: Frame extents from Thomas Fitzsimmons . (http://mail.gnome.org/archives/wm-spec-list/2003-December/msg00032.html) --- wm-spec/wm-spec.xml | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/wm-spec/wm-spec.xml b/wm-spec/wm-spec.xml index cfcc8b3..3b31964 100644 --- a/wm-spec/wm-spec.xml +++ b/wm-spec/wm-spec.xml @@ -790,7 +790,36 @@ _NET_CLOSE_WINDOW tool, and therefore the Window Manager should always obey it. - + _NET_REQUEST_FRAME_EXTENTS + + +A Client whose window has not yet been mapped can request of the +Window Manager an estimate of the frame extents it will be given upon +mapping. To retrieve such an estimate, the Client MUST send a +_NET_REQUEST_FRAME_EXTENTS message to the root window. The Window +Manager MUST respond by estimating the prospective frame extents and +setting the window's _NET_FRAME_EXTENTS property accordingly. The +Client MUST handle the resulting _NET_FRAME_EXTENTS PropertyNotify +event. So that the Window Manager has a good basis for estimation, +the Client MUST set any window properties it intends to set +before sending this message. The Client MUST be able to cope +with imperfect estimates. + + +Rationale: A client cannot calculate the dimensions of its window's +frame before the window is mapped, but some toolkits need this +information. Asking the window manager for an estimate of the extents +is a workable solution. The estimate may depend on the current theme, +font sizes or other window properties. The client can track changes +to the frame's dimensions by listening for _NET_FRAME_EXTENTS +PropertyNotify events. + + + Application Window Properties _NET_WM_NAME @@ -1355,6 +1384,16 @@ action or is a "pop-up" window activated by a timer or some other event. + _NET_FRAME_EXTENTS + + +The Window Manager MUST set _NET_FRAME_EXTENTS to the extents of the +window's frame. left, right, top and bottom are widths of the +respective borders added by the Window Manager. + + Window Manager Protocols @@ -1865,6 +1904,7 @@ OR OTHER DEALINGS IN THE SOFTWARE. David Rosenthal Lubos Lunak Rob Adams + Thomas Fitzsimmons Change history @@ -1872,6 +1912,10 @@ OR OTHER DEALINGS IN THE SOFTWARE. Changes since 1.2 +Added _NET_REQUEST_FRAME_EXTENTS and _NET_FRAME_EXTENTS to allow a +client to retrieve its window's frame extents. + + Added new state _NET_WM_STATE_DEMANDS_ATTENTION. -- cgit v1.2.3-70-g09d2