mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-18 05:00:43 +02:00
randr: Add GetScreenResourcesCurrent
This commit is contained in:
parent
554592cd70
commit
b719ea30ce
3 changed files with 4 additions and 1 deletions
|
|
@ -211,5 +211,6 @@ int (*ProcRandrVector[RRNumberRequests])(ClientPtr) = {
|
|||
ProcRRGetCrtcGammaSize, /* 22 */
|
||||
ProcRRGetCrtcGamma, /* 23 */
|
||||
ProcRRSetCrtcGamma, /* 24 */
|
||||
ProcRRGetScreenResources, /* 25 */
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -314,6 +314,7 @@ ProcRRSetScreenSize (ClientPtr client)
|
|||
return Success;
|
||||
}
|
||||
|
||||
/* This handles GetScreenResourcesCurrent too */
|
||||
int
|
||||
ProcRRGetScreenResources (ClientPtr client)
|
||||
{
|
||||
|
|
@ -339,7 +340,7 @@ ProcRRGetScreenResources (ClientPtr client)
|
|||
pScrPriv = rrGetScrPriv(pScreen);
|
||||
rep.pad = 0;
|
||||
|
||||
if (pScrPriv)
|
||||
if (pScrPriv && stuff->randrReqType != X_RRGetScreenResourcesCurrent)
|
||||
if (!RRGetInfo (pScreen))
|
||||
return BadAlloc;
|
||||
|
||||
|
|
|
|||
|
|
@ -394,5 +394,6 @@ int (*SProcRandrVector[RRNumberRequests])(ClientPtr) = {
|
|||
SProcRRGetCrtcGammaSize, /* 22 */
|
||||
SProcRRGetCrtcGamma, /* 23 */
|
||||
SProcRRSetCrtcGamma, /* 24 */
|
||||
SProcRRGetScreenResources, /* 25 */
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue