mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
Move the screensaver extension from module to builtins.
Add the server side implementation of the ScreenSaverSuspend request.
Require scrnsaverproto >= 1.1, and change the linking order of the Xorg
static libs.
This commit is contained in:
14
os/WaitFor.c
14
os/WaitFor.c
@@ -669,6 +669,16 @@ FreeScreenSaverTimer(void)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef SCREENSAVER
|
||||
/*
|
||||
* When this variable is set a client has temporarily suspended the
|
||||
* screensaver and DPMS, so SetScreenSaverTimer should be a noop.
|
||||
* The screensaver extension is responsible for stopping and
|
||||
* restarting the timer when suspension is enabled/disabled.
|
||||
*/
|
||||
extern Bool screenSaverSuspended; /* declared in Xext/saver.c */
|
||||
#endif /* SCREENSAVER */
|
||||
|
||||
void
|
||||
SetScreenSaverTimer(void)
|
||||
{
|
||||
@@ -699,7 +709,11 @@ SetScreenSaverTimer(void)
|
||||
ScreenSaverTime;
|
||||
}
|
||||
|
||||
#ifdef SCREENSAVER
|
||||
if (timeout && !screenSaverSuspended) {
|
||||
#else
|
||||
if (timeout) {
|
||||
#endif
|
||||
ScreenSaverTimer = TimerSet(ScreenSaverTimer, 0, timeout,
|
||||
ScreenSaverTimeoutExpire, NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user