From 4768600f4f6d08e09ffb765148152a6588d880db Mon Sep 17 00:00:00 2001 From: sandmann Date: Fri, 28 May 2004 16:23:09 +0000 Subject: Add _NET_WM_SYNC_REQUEST --- wm-spec/wm-spec.xml | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) (limited to 'wm-spec') diff --git a/wm-spec/wm-spec.xml b/wm-spec/wm-spec.xml index 2add3bd..7d39f80 100644 --- a/wm-spec/wm-spec.xml +++ b/wm-spec/wm-spec.xml @@ -1438,6 +1438,57 @@ respond to this protocol within a reasonable time. See also the implementation notes on killing hung processes. + _NET_WM_SYNC_REQUEST + +This protocol uses the XSync extension (see the +protocol specification and +the library documentation) to let client and window manager +synchronize the repaint of the window manager frame and the client +window. A client indicates that it is willing to participate in the +protocol by listing _NET_WM_SYNC_REQUEST in the WM_PROTOCOLS property +of the client window and storing the XID of an XSync counter in the +property _NET_WM_SYNC_REQUEST_COUNTER. The initial value of this +counter is not defined by this specification. + + +A window manager uses this protocol by preceding a ConfigureNotify +event sent to a client by a client message as follows: + + + + +After receiving one or more such message/ConfigureNotify pairs, and +having handled all repainting associated with the ConfigureNotify +events, the client MUST set the _NET_WM_SYNC_REQUEST_COUNTER to the 64 +bit number indicated by the data.l[2] and data.l[3] fields of the last +client message received. + + +By using either the Alarm or the Await mechanisms of the XSync +extension, the window manager can know when the client has finished +handling the ConfigureNotify events. The window manager SHOULD not +resize the window faster than the client can keep up. + + +The update request number in the client message is determined by the +window manager, but is generally intended to be incremented by one for +each message sent. Since the initial value of the XSync counter is not +defined by this specification, the window manager MAY set the value of +the XSync counter at any time, and MUST do so when it first manages a +new window. + @@ -1905,12 +1956,17 @@ OR OTHER DEALINGS IN THE SOFTWARE. Lubos Lunak Rob Adams Thomas Fitzsimmons + Søren Sandmann Change history Changes since 1.2 + +Added _NET_WM_SYNC_REQUEST to allow synchronized repaint of +application window and window manager frame during opaque resize. + Added _NET_REQUEST_FRAME_EXTENTS and _NET_FRAME_EXTENTS to allow a client to retrieve its window's frame extents. -- cgit v1.2.3-70-g09d2