diff options
author | Keith Packard <keithp@neko.keithp.com> | 2006-10-24 17:26:20 -0700 |
---|---|---|
committer | Keith Packard <keithp@neko.keithp.com> | 2006-10-24 17:26:20 -0700 |
commit | 59511974db843fa7e11133894cfc10c20fdaf60f (patch) | |
tree | ff269847b21b6bc6423b27cecf1f983e3805def8 /randr/randr.c | |
parent | 054f8cd2675a80b14bc1ce266377fcfee2335cee (diff) | |
parent | 598ac7a83698327b607084abaebcbd22f8d25fbb (diff) |
Merge branch 'master' into randr-1.2
Diffstat (limited to 'randr/randr.c')
-rw-r--r-- | randr/randr.c | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/randr/randr.c b/randr/randr.c index b422efe9d..5494428fc 100644 --- a/randr/randr.c +++ b/randr/randr.c @@ -467,6 +467,54 @@ ProcRRDispatch (ClientPtr client) } static int +SProcRRGetScreenInfo (ClientPtr client) +{ + register int n; + REQUEST(xRRGetScreenInfoReq); + + swaps(&stuff->length, n); + swapl(&stuff->window, n); + return ProcRRGetScreenInfo(client); +} + +static int +SProcRRSetScreenConfig (ClientPtr client) +{ + register int n; + REQUEST(xRRSetScreenConfigReq); + + if (RRClientKnowsRates (client)) + { + REQUEST_SIZE_MATCH (xRRSetScreenConfigReq); + swaps (&stuff->rate, n); + } + else + { + REQUEST_SIZE_MATCH (xRR1_0SetScreenConfigReq); + } + + swaps(&stuff->length, n); + swapl(&stuff->drawable, n); + swapl(&stuff->timestamp, n); + swaps(&stuff->sizeID, n); + swaps(&stuff->rotation, n); + return ProcRRSetScreenConfig(client); +} + +static int +SProcRRSelectInput (ClientPtr client) +{ + register int n; + REQUEST(xRRSelectInputReq); + + swaps(&stuff->length, n); + swapl(&stuff->window, n); + swaps(&stuff->enable, n); + return ProcRRSelectInput(client); +} + + +static int SProcRRDispatch (ClientPtr client) { REQUEST(xReq); |