[MPlayer-dev-eng] [PATCH] Activating/Deactivating of XScreenSaver

Diego Biurrun diego at biurrun.de
Sun Jun 2 01:43:49 CEST 2002


Joachim Breitner writes:
 > 
 > This easy patch executes xscreensaver-command -exit when saver_off
 > is called, and starts xscreensaver & when saver_on (in case
 > xscreesaver was running) is called. I added a FLAG-option
 > "stop_xscreensaver" (and "nostop_xscreensaver").  

It works, after I changed

  int stop_xscreensaver=0;

to 

  int stop_xscreensaver=1;

xscreensaver gets stopped and restarted after mplayer quits.  If I do
a 'killall -9 mplayer' xscreensaver does not get restarted, though.

Ideally mplayer should only pause xscreensaver, see the xscreensaver
FAQ:

http://www.jwz.org/xscreensaver/faq.html#dvd

This was recently discussed on this list:

http://www.mplayerhq.hu/pipermail/mplayer-dev-eng/2002-May/007770.html

Since xscreensaver is used for locking the screen, a crashing mplayer
can be a security hole, because the screen will not be locked again
and the user is probably not aware of this.

I will still keep this patch applied to my local tree, my workstation
does not need to be locked :-)

 > I would like to see this functionality because I'm about to getting
 > used to move the mouse every 9 minutes while watching a move...

This is my pet peeve, too, and a very nice feature, I believe.  Movie
players should disable screensavers.

Diego



More information about the MPlayer-dev-eng mailing list