From a86f4b9442a48a3049e03a4c7d4fd022a860bf01 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 24 Nov 2006 13:44:55 -0800 Subject: Create Properties when configured. Pending defaults to Current Change property semantics to create them with empty value when they are configured. When clients request the Pending value of a property without any pending vlaue, the current value is returned instead. --- randrproto.txt | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'randrproto.txt') diff --git a/randrproto.txt b/randrproto.txt index c9d0144..bde1fdf 100644 --- a/randrproto.txt +++ b/randrproto.txt @@ -649,15 +649,15 @@ dynamic changes in the display environment. └─── Errors: Access, Name, Atom, Output - If the specified property does not exist for the specified output, - then a Name error is returned. - If the specified property is 'immutable', an Access error is returned. Otherwise, the configuration of the specified property is changed to the values provided in this request. + If the specified property does not exist for the specified output, + it is created with an empty value and None type. + ┌─── RRChangeOutputProperty output: OUTPUT @@ -747,15 +747,15 @@ dynamic changes in the display environment. L = MINIMUM(T, 4 × long-length) A = N - (I + L) - If 'pending' is true, then the value returned will be the pending - value of the property rather than the current value. The returned - value starts at byte index I in the property (indexing from 0), and - its length in bytes is L. However, it is a Value error if - long-offset is given such that L is negative. The value of - bytes-after is A, giving the number of trailing unread bytes in the - stored property. If delete is True and the bytes-after is zero, the - property is also deleted from the output, and a - RROutputPropertyNotify event is generated. + If 'pending' is true, and if the property holds a pending value, + then the value returned will be the pending value of the property + rather than the current value. The returned value starts at byte + index I in the property (indexing from 0), and its length in bytes + is L. However, it is a Value error if long-offset is given such + that L is negative. The value of bytes-after is A, giving the + number of trailing unread bytes in the stored property. If delete + is True and the bytes-after is zero, the property is also deleted + from the output, and a RROutputPropertyNotify event is generated. ┌─── RRCreateMode -- cgit v1.2.3