Bug #13962: Re-arm the DPMS timer when re-enabling DPMS.
(cherry picked from commit 536f2ff538
)
This commit is contained in:
parent
80968c4a91
commit
fdf927c2cd
@ -188,12 +188,15 @@ static int
|
|||||||
ProcDPMSEnable(client)
|
ProcDPMSEnable(client)
|
||||||
register ClientPtr client;
|
register ClientPtr client;
|
||||||
{
|
{
|
||||||
/* REQUEST(xDPMSEnableReq); */
|
Bool was_enabled = DPMSEnabled;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xDPMSEnableReq);
|
REQUEST_SIZE_MATCH(xDPMSEnableReq);
|
||||||
|
|
||||||
if (DPMSCapableFlag)
|
if (DPMSCapableFlag) {
|
||||||
DPMSEnabled = TRUE;
|
DPMSEnabled = TRUE;
|
||||||
|
if (!was_enabled)
|
||||||
|
SetScreenSaverTimer();
|
||||||
|
}
|
||||||
|
|
||||||
return(client->noClientException);
|
return(client->noClientException);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user