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;
|
||||
}
|
||||
|
||||
rep.status = RRCrtcSet (crtc, mode, stuff->x, stuff->y,
|
||||
rotation, numOutputs, outputs);
|
||||
if (!RRCrtcSet (crtc, mode, stuff->x, stuff->y,
|
||||
rotation, numOutputs, outputs))
|
||||
{
|
||||
rep.status = RRSetConfigFailed;
|
||||
goto sendReply;
|
||||
}
|
||||
rep.status = RRSetConfigSuccess;
|
||||
|
||||
sendReply:
|
||||
if (outputs)
|
||||
|
|
|
@ -360,8 +360,8 @@ ProcRRGetScreenResources (ClientPtr client)
|
|||
rep.type = X_Reply;
|
||||
rep.sequenceNumber = client->sequence;
|
||||
rep.length = 0;
|
||||
rep.timestamp = currentTime.milliseconds;
|
||||
rep.configTimestamp = currentTime.milliseconds;
|
||||
rep.timestamp = pScrPriv->lastSetTime.milliseconds;
|
||||
rep.configTimestamp = pScrPriv->lastConfigTime.milliseconds;
|
||||
rep.nCrtcs = pScrPriv->numCrtcs;
|
||||
rep.nOutputs = pScrPriv->numOutputs;
|
||||
rep.nModes = pScrPriv->numModes;;
|
||||
|
|
Loading…
Reference in New Issue