Bug #13962: Re-arm the DPMS timer when re-enabling DPMS.

(cherry picked from commit 536f2ff538)
This commit is contained in:
Adam Jackson 2008-03-24 12:22:19 -04:00 committed by Daniel Stone
parent a08f848d4c
commit 33a9ee9ba0

View File

@ -200,12 +200,15 @@ static int
ProcDPMSEnable(client)
register ClientPtr client;
{
/* REQUEST(xDPMSEnableReq); */
Bool was_enabled = DPMSEnabled;
REQUEST_SIZE_MATCH(xDPMSEnableReq);
if (DPMSCapableFlag)
if (DPMSCapableFlag) {
DPMSEnabled = TRUE;
if (!was_enabled)
SetScreenSaverTimer();
}
return(client->noClientException);
}