mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-15 19:22:22 +00:00
Move the code for resetting the DPMS mode in response to input events,
from WaitForSomething to mieqProcessInputEvents. mieqProcessInputEvents already handles resetting the screen saver.
This commit is contained in:
parent
953a9ef949
commit
3b5b7ef5c2
2 changed files with 14 additions and 4 deletions
|
|
@ -337,10 +337,7 @@ WaitForSomething(int *pClientsReady)
|
|||
if (XFD_ANYSET(&tmp_set))
|
||||
QueueWorkProc(EstablishNewConnections, NULL,
|
||||
(pointer)&LastSelectMask);
|
||||
#ifdef DPMSExtension
|
||||
if (XFD_ANYSET (&devicesReadable) && (DPMSPowerLevel != DPMSModeOn))
|
||||
DPMSSet(DPMSModeOn);
|
||||
#endif
|
||||
|
||||
if (XFD_ANYSET (&devicesReadable) || XFD_ANYSET (&clientsReadable))
|
||||
break;
|
||||
#ifdef WIN32
|
||||
|
|
|
|||
Loading…
Reference in a new issue