xserver-multidpi/hw
Jon TURNEY 127a7068b7 hw/xwin: Allow XScreenSaverSuspend() to effect Windows screen saver or monitor power off
Reset the idle timer in the block handler if screenSaverSuspended is set.

This isn't quite a complete solution.  We should also set the block timeout to
something less than the idle timer timeout to ensure we will reset the idle
timer before it times out if we are blocking.

The idle timer timeout is presumably the first one to expire of the screen saver
activation or monitor low power or power down timeout, depending on
configuration.

Unfortunately this is probably not straightforward to do. Whilst
SystemParametersInfo(SPI_GETSCREENSAVETIMEOUT) is portable, apparently
SPI_GETLOWPOWERTIMEOUT and SPI_GETPOWEROFFTIMEOUT are not supported by Windows
versions 6.0 or later, and the interface for discovering equivalent value is
complex.

This doesn't matter in the case where a media player or similar application is
the one making the XScreenSaverSuspend() requests, as it will be continuously
drawing, causing the X server to become unblocked often.

In the case where slide show presentation application or similar is the one
making the XScreenSaverSuspend() request, this might be a problem.

Since "Powerpoint is Evil" [1], I think we'll leave it like this till someone
complains :-)

[1] http://www.edwardtufte.com/tufte/books_pp

v2: conditionalize on SCREENSAVER

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
2012-11-27 14:37:00 +00:00
..
dmx dix: Remove refs to mi backing store from docs 2012-09-23 10:31:39 -07:00
kdrive Revert "kinput: allocate enough space for null character." 2012-10-07 12:25:53 -07:00
vfb dix: Remove #includes of mibstore.h 2012-09-23 10:31:27 -07:00
xfree86 linux: Prefer ioctl(KDSKBMUTE, 1) over ioctl(KDSKBMODE, K_OFF) 2012-11-19 12:13:39 +10:00
xnest dix: Remove #includes of mibstore.h 2012-09-23 10:31:27 -07:00
xquartz XQuartz: Opt-in to NSSupportsAutomaticGraphicsSwitching 2012-11-17 11:52:10 -05:00
xwin hw/xwin: Allow XScreenSaverSuspend() to effect Windows screen saver or monitor power off 2012-11-27 14:37:00 +00:00
Makefile.am Catch errors in recursive relink targets 2010-03-22 00:45:57 -05:00