diff options
author | Keith Packard <keithp@keithp.com> | 2011-02-16 22:44:30 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-02-16 22:48:52 -0800 |
commit | 105a161a3f5fb67f5fe7e4119629d424672804aa (patch) | |
tree | 2ed2af10525579da1875f7e60ba3971f62d391dc /randrproto.h | |
parent | 611a4e0c7bdc9831e0eda396030a27bcd2c11759 (diff) |
Make SetCrtcConfigs take flags bits to allow partial configuration changes
Instead of requiring a complete new configuration to be computed,
allow the client to send a partial configuration with only the changed
values included. This simplifies clients so that they need not change
things they don't understand.
This also removes the 'CurrentScanoutPixmap' hack as that is no longer
necessary.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'randrproto.h')
-rw-r--r-- | randrproto.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/randrproto.h b/randrproto.h index ba9b703..00bae2d 100644 --- a/randrproto.h +++ b/randrproto.h @@ -661,6 +661,7 @@ typedef struct { typedef struct { RRCrtc crtc B32; + CARD32 set B32; INT16 x B16, y B16; RRMode mode B32; Rotation rotation B16; @@ -670,7 +671,7 @@ typedef struct { Pixmap pixmap B32; INT16 xPixmap B16, yPixmap B16; } xRRCrtcConfig; -#define sz_xRRCrtcConfig (2*sz_xRenderTransform + 24) +#define sz_xRRCrtcConfig (2*sz_xRenderTransform + 28) typedef struct { CARD8 reqType; @@ -740,6 +741,7 @@ typedef struct { CARD8 randrReqType; CARD16 length B16; Drawable drawable B32; + CARD32 set B32; CARD16 screenPixmapWidth B16, screenPixmapHeight B16; CARD16 screenWidth B16, screenHeight B16; CARD32 widthInMillimeters B32; @@ -748,7 +750,7 @@ typedef struct { CARD16 pad0 B16; CARD32 pad1 B32; } xRRSetCrtcConfigsReq; -#define sz_xRRSetCrtcConfigsReq 32 +#define sz_xRRSetCrtcConfigsReq 36 typedef struct { BYTE type; |