summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2022-01-20 12:42:37 +0100
committerSimon Rettberg2022-01-20 12:42:37 +0100
commit41750652c7869f2ac594eb9decea6810b0ff2700 (patch)
tree31d56fc5a22ca8b77f7ab28dda1b6117fbe6d91c
parentMaybe not remove, but ... (diff)
downloadxscreensaver-41750652c7869f2ac594eb9decea6810b0ff2700.tar.gz
xscreensaver-41750652c7869f2ac594eb9decea6810b0ff2700.tar.xz
xscreensaver-41750652c7869f2ac594eb9decea6810b0ff2700.zip
Re-sync dpms settings on unblank
-rw-r--r--driver/windows.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/driver/windows.c b/driver/windows.c
index 5854c49..c0e2291 100644
--- a/driver/windows.c
+++ b/driver/windows.c
@@ -1794,6 +1794,14 @@ unblank_screen (saver_info *si)
store_dpms_offset (0);
monitor_power_on (si, True);
reset_watchdog_timer (si, False);
+ sync_server_dpms_settings (si->dpy,
+ (p->dpms_enabled_p &&
+ p->mode != DONT_BLANK),
+ p->dpms_quickoff_p,
+ p->dpms_standby / 1000,
+ p->dpms_suspend / 1000,
+ p->dpms_off / 1000,
+ False);
if (si->demoing_p)
unfade_p = False;