diff options
author | Keith Packard <keithp@keithp.com> | 2008-11-26 15:49:02 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2008-11-26 15:50:54 -0800 |
commit | fc708394318ed92c612e2938b335c08c1ffebb28 (patch) | |
tree | 78e11167dca90269937092f8b78ad7a3a5815ddb /randr/rrscreen.c | |
parent | f710ce269c020a39f58b2bfbd0fe5192a3279c72 (diff) |
Add server support for RRGetScreenResourcesCurrent
This depends on randrproto 1.2.99.1
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'randr/rrscreen.c')
-rw-r--r-- | randr/rrscreen.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/randr/rrscreen.c b/randr/rrscreen.c index a910368b3..7a8f2ebc7 100644 --- a/randr/rrscreen.c +++ b/randr/rrscreen.c @@ -314,8 +314,8 @@ ProcRRSetScreenSize (ClientPtr client) return Success; } -int -ProcRRGetScreenResources (ClientPtr client) +static int +rrGetScreenResources(ClientPtr client, Bool query) { REQUEST(xRRGetScreenResourcesReq); xRRGetScreenResourcesReply rep; @@ -339,7 +339,7 @@ ProcRRGetScreenResources (ClientPtr client) pScrPriv = rrGetScrPriv(pScreen); rep.pad = 0; - if (pScrPriv) + if (query && pScrPriv) if (!RRGetInfo (pScreen)) return BadAlloc; @@ -463,6 +463,18 @@ ProcRRGetScreenResources (ClientPtr client) return client->noClientException; } +int +ProcRRGetScreenResources (ClientPtr client) +{ + return rrGetScreenResources(client, TRUE); +} + +int +ProcRRGetScreenResourcesCurrent (ClientPtr client) +{ + return rrGetScreenResources(client, FALSE); +} + typedef struct _RR10Data { RRScreenSizePtr sizes; int nsize; |