diff options
author | Keith Packard <keithp@neko.keithp.com> | 2006-11-20 20:58:16 -0800 |
---|---|---|
committer | Keith Packard <keithp@neko.keithp.com> | 2006-11-20 20:58:16 -0800 |
commit | af852261efa5eb7f8d16e3e90b8832bf66d93de7 (patch) | |
tree | 75a03dd0e92fedd4d51685694901e7f13b2fc9bc /randrproto.h | |
parent | cdc282c2995dc17dee97c6da24a9705478cf792e (diff) |
Change properties to have a pending value and report valid values.
Pending values are transferred to current values at mode set, allowing a
queue of values to accrue in preparation for the modeset operation while
still reporting valid 'current' values for applications.
The set of valid values is also available so applications can present
a reasonable list to the user during configuration.
I renumbered a bunch of requests to keep property requests sequential.
Diffstat (limited to 'randrproto.h')
-rw-r--r-- | randrproto.h | 42 |
1 files changed, 40 insertions, 2 deletions
diff --git a/randrproto.h b/randrproto.h index 314b9ae..aa9d35f 100644 --- a/randrproto.h +++ b/randrproto.h @@ -312,6 +312,44 @@ typedef struct { CARD16 length B16; RROutput output B32; Atom property B32; +} xRRQueryOutputPropertyReq; +#define sz_xRRQueryOutputPropertyReq 12 + +typedef struct { + BYTE type; + CARD8 nProperties; + CARD16 sequenceNumber B16; + CARD32 length B32; + BOOL pending; + BOOL range; + BOOL immutable; + BOOL pad0; + CARD16 pad2 B16; + CARD32 pad3 B32; + CARD32 pad4 B32; + CARD32 pad5 B32; + CARD32 pad6 B32; +} xRRQueryOutputPropertyReply; +#define sz_xRRQueryOutputPropertyReply 32 + +typedef struct { + CARD8 reqType; + CARD8 randrReqType; + CARD16 length B16; + RROutput output B32; + Atom property B32; + BOOL pending; + BOOL range; + CARD16 pad B16; +} xRRConfigureOutputPropertyReq; +#define sz_xRRConfigureOutputPropertyReq 16 + +typedef struct { + CARD8 reqType; + CARD8 randrReqType; + CARD16 length B16; + RROutput output B32; + Atom property B32; Atom type B32; CARD8 format; CARD8 mode; @@ -339,8 +377,8 @@ typedef struct { CARD32 longOffset B32; CARD32 longLength B32; BOOL delete; - CARD8 pad1; - CARD16 pad2; + BOOL pending; + CARD16 pad1 B16; } xRRGetOutputPropertyReq; #define sz_xRRGetOutputPropertyReq 28 |