[Portland] xdg-screensaver.in

Ian Romanick idr at us.ibm.com
Wed May 10 08:19:55 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bastian, Waldo wrote:
> I think it makes more sense to have an API in the X-server to "suspend"
> the screensaver for a defined amount of time rather than disable it
> entirely. That way you don't end up with a disabled screensaver when an
> application crashes, which would have a security impact.

There are at least two reasonable ways to do this.  The first is to
disable the screensaver in a fashion similar to watch-dog timers.  That
is, every 2 minutes (or whatever) the application has to tell the
server, "I'm still here, please don't start the screensaver."  That
handles both the case where the application crashes and the case where
it just hangs.

The other way is associate blocking the screensaver with a particular
window.  As long as the window is open, the screensaver is blocked.  If
the app crashes, the will window will close, and the screensaver will
unblock.

I can see arguments in favor of either.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEYgSbX1gOwKyEAw8RAnTwAKCZnVNGeKztp8zH236BcnSBaSN8sACgmGGy
MfDfKgyQFk3nWNr24hUH2ho=
=ypww
-----END PGP SIGNATURE-----



More information about the xorg mailing list