X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=driver%2Ftimers.c;h=89026d1bd6d5b168bba4004cf1966c243e1e1fc2;hp=bc92893a59c357b0d45503af94e0245f6c42b3a7;hb=0bd2eabab3e404c6769fe8f59b639275e960c415;hpb=c6b273ef7292ba10943694df1656b05203d7b62f diff --git a/driver/timers.c b/driver/timers.c index bc92893a..89026d1b 100644 --- a/driver/timers.c +++ b/driver/timers.c @@ -608,6 +608,14 @@ watchdog_timer (XtPointer closure, XtIntervalId *id) #endif /* DEBUG_TIMERS */ raise_window (si, True, True, running_p); + + if (!monitor_powered_on_p (si)) + { + if (si->prefs.verbose_p) + printf ("%s: server reports that monitor has powered down; " + "killing running hacks.\n", progname); + kill_screenhack (si); + } } } }