mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-29 21:46:40 +00:00
xace: add hooks + new access codes: core protocol screensaver requests
This commit is contained in:
parent
568ae737d1
commit
b82557c9fb
17 changed files with 69 additions and 38 deletions
|
|
@ -583,7 +583,7 @@ TimerInit(void)
|
|||
|
||||
#define DPMS_CHECK_MODE(mode,time)\
|
||||
if (time > 0 && DPMSPowerLevel < mode && timeout >= time)\
|
||||
DPMSSet(mode);
|
||||
DPMSSet(serverClient, mode);
|
||||
|
||||
#define DPMS_CHECK_TIMEOUT(time)\
|
||||
if (time > 0 && (time - timeout) > 0)\
|
||||
|
|
@ -652,7 +652,7 @@ ScreenSaverTimeoutExpire(OsTimerPtr timer,CARD32 now,pointer arg)
|
|||
}
|
||||
|
||||
ResetOsBuffers(); /* not ideal, but better than nothing */
|
||||
SaveScreens(SCREEN_SAVER_ON, ScreenSaverActive);
|
||||
SaveScreens(serverClient, SCREEN_SAVER_ON, ScreenSaverActive);
|
||||
|
||||
if (ScreenSaverInterval > 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue