RRSetCrtcConfig status fix. RRGetScreenResources timestamp fix.
RRSetCrtcConfig was returning the wrong status values. RRGetScreenResources was always returning currentTime.
This commit is contained in:
parent
09f7499851
commit
bde0a4c12c
|
@ -628,8 +628,13 @@ ProcRRSetCrtcConfig (ClientPtr client)
|
||||||
goto sendReply;
|
goto sendReply;
|
||||||
}
|
}
|
||||||
|
|
||||||
rep.status = RRCrtcSet (crtc, mode, stuff->x, stuff->y,
|
if (!RRCrtcSet (crtc, mode, stuff->x, stuff->y,
|
||||||
rotation, numOutputs, outputs);
|
rotation, numOutputs, outputs))
|
||||||
|
{
|
||||||
|
rep.status = RRSetConfigFailed;
|
||||||
|
goto sendReply;
|
||||||
|
}
|
||||||
|
rep.status = RRSetConfigSuccess;
|
||||||
|
|
||||||
sendReply:
|
sendReply:
|
||||||
if (outputs)
|
if (outputs)
|
||||||
|
|
|
@ -360,8 +360,8 @@ ProcRRGetScreenResources (ClientPtr client)
|
||||||
rep.type = X_Reply;
|
rep.type = X_Reply;
|
||||||
rep.sequenceNumber = client->sequence;
|
rep.sequenceNumber = client->sequence;
|
||||||
rep.length = 0;
|
rep.length = 0;
|
||||||
rep.timestamp = currentTime.milliseconds;
|
rep.timestamp = pScrPriv->lastSetTime.milliseconds;
|
||||||
rep.configTimestamp = currentTime.milliseconds;
|
rep.configTimestamp = pScrPriv->lastConfigTime.milliseconds;
|
||||||
rep.nCrtcs = pScrPriv->numCrtcs;
|
rep.nCrtcs = pScrPriv->numCrtcs;
|
||||||
rep.nOutputs = pScrPriv->numOutputs;
|
rep.nOutputs = pScrPriv->numOutputs;
|
||||||
rep.nModes = pScrPriv->numModes;;
|
rep.nModes = pScrPriv->numModes;;
|
||||||
|
|
Loading…
Reference in New Issue