aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xwin/winblock.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/hw/xwin/winblock.c')
-rw-r--r--xorg-server/hw/xwin/winblock.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/xorg-server/hw/xwin/winblock.c b/xorg-server/hw/xwin/winblock.c
index 480e3bd48..a4ae8669f 100644
--- a/xorg-server/hw/xwin/winblock.c
+++ b/xorg-server/hw/xwin/winblock.c
@@ -86,4 +86,13 @@ winBlockHandler(ScreenPtr pScreen,
DispatchMessage(&msg);
}
}
+
+ /*
+ At least one X client has asked to suspend the screensaver, so
+ reset Windows' display idle timer
+ */
+#ifdef SCREENSAVER
+ if (screenSaverSuspended)
+ SetThreadExecutionState(ES_DISPLAY_REQUIRED);
+#endif
}