diff options
Diffstat (limited to 'xserver/Xext/dpms.c')
-rw-r--r-- | xserver/Xext/dpms.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xserver/Xext/dpms.c b/xserver/Xext/dpms.c index aced40639..0557523f6 100644 --- a/xserver/Xext/dpms.c +++ b/xserver/Xext/dpms.c @@ -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); } |