diff options
-rw-r--r-- | hw/xwin/winblock.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/xwin/winblock.c b/hw/xwin/winblock.c index 480e3bd48..a4ae8669f 100644 --- a/hw/xwin/winblock.c +++ b/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 } |