proto/randrproto: Branch 'multi-monitor' - 2 commits
Keith Packard
keithp at kemper.freedesktop.org
Fri Nov 24 23:46:02 EET 2006
randrproto.h | 5 +++--
randrproto.txt | 24 ++++++++++++------------
2 files changed, 15 insertions(+), 14 deletions(-)
New commits:
diff-tree 7363d448c77c2d2ec2928d9d4bc41aac1c2d36b7 (from a86f4b9442a48a3049e03a4c7d4fd022a860bf01)
Author: Keith Packard <keithp at neko.keithp.com>
Date: Fri Nov 24 13:45:25 2006 -0800
Use BYTE for one-byte values. #undef Drawable needed.
diff --git a/randrproto.h b/randrproto.h
index aa9d35f..fe40c0e 100644
--- a/randrproto.h
+++ b/randrproto.h
@@ -317,13 +317,13 @@ typedef struct {
typedef struct {
BYTE type;
- CARD8 nProperties;
+ BYTE pad0;
CARD16 sequenceNumber B16;
CARD32 length B32;
BOOL pending;
BOOL range;
BOOL immutable;
- BOOL pad0;
+ BYTE pad1;
CARD16 pad2 B16;
CARD32 pad3 B32;
CARD32 pad4 B32;
@@ -632,6 +632,7 @@ typedef struct {
#undef RROutput
#undef RRMode
#undef RRCrtc
+#undef Drawable
#undef Window
#undef Font
#undef Pixmap
diff-tree a86f4b9442a48a3049e03a4c7d4fd022a860bf01 (from af852261efa5eb7f8d16e3e90b8832bf66d93de7)
Author: Keith Packard <keithp at neko.keithp.com>
Date: Fri Nov 24 13:44:55 2006 -0800
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.
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 environme
ââââ
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 environme
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
More information about the xorg-commit
mailing list