diff options
author | Eric Anholt <eric@anholt.net> | 2009-01-30 19:06:17 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-01-30 19:35:55 -0800 |
commit | 317f2b4a9fe4b606975711bc332166a82db5087d (patch) | |
tree | eec63b4f44dee976577a6b051f2c9d138df28e65 /randr/rrscreen.c | |
parent | c1f2be1f3fd0c80cb4c85b98140b98aa9311242b (diff) |
randr: Avoid re-querying the configuration on everything but GetScreenResources.
The new path should only re-query on the other requests when we haven't
gathered the information from the DDX yet (such as with a non-RandR 1.2 DDX).
Bug #19037.
Diffstat (limited to 'randr/rrscreen.c')
-rw-r--r-- | randr/rrscreen.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/randr/rrscreen.c b/randr/rrscreen.c index 85a30a4f5..3456c72a4 100644 --- a/randr/rrscreen.c +++ b/randr/rrscreen.c @@ -224,7 +224,7 @@ ProcRRGetScreenSizeRange (ClientPtr client) if (pScrPriv) { - if (!RRGetInfo (pScreen)) + if (!RRGetInfo (pScreen, FALSE)) return BadAlloc; rep.minWidth = pScrPriv->minWidth; rep.minHeight = pScrPriv->minHeight; @@ -340,7 +340,7 @@ rrGetScreenResources(ClientPtr client, Bool query) rep.pad = 0; if (query && pScrPriv) - if (!RRGetInfo (pScreen)) + if (!RRGetInfo (pScreen, query)) return BadAlloc; if (!pScrPriv) @@ -612,7 +612,7 @@ ProcRRGetScreenInfo (ClientPtr client) rep.pad = 0; if (pScrPriv) - if (!RRGetInfo (pScreen)) + if (!RRGetInfo (pScreen, FALSE)) return BadAlloc; output = RRFirstOutput (pScreen); @@ -793,7 +793,7 @@ ProcRRSetScreenConfig (ClientPtr client) rep.status = RRSetConfigFailed; goto sendReply; } - if (!RRGetInfo (pScreen)) + if (!RRGetInfo (pScreen, FALSE)) return BadAlloc; output = RRFirstOutput (pScreen); |