[MPlayer-dev-eng] [PATCH] support for gnome-screensaver

Olaf Mandel olaf at mandel.name
Tue Oct 17 17:17:37 CEST 2006


Hello,

this patch adds support for the gnome-screensaver in
xscreensaver_heartbeat().

The patch uses the command line tool gnome-screensaver-command to first
detect  the presense of the screensaver in saver_off() and then to
regularly poke it in in xscreensaver_heartbeat(), if it was detected in
saver_off(). If one such poke fails, no further pokeing is tried.

This of course leaves as possible bug that the screensaver gets started
after mplayer starts playback, but this is not checked for perfomance
reasons (should happen VERY rarely): no ill affects appart from the
screensaver not being stopped. The patch should also work if the
gnome-screensaver is not active or not installed at all.

Best regards,
Olaf Mandel
-- 
Olaf Mandel              eMail Olaf at Mandel.name
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer.diff
Type: text/x-patch
Size: 2711 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20061017/c384865f/attachment.bin>


More information about the MPlayer-dev-eng mailing list