Re: screensaver events
"Damien U" <[email protected]>
| Newsgroups | gmane.comp.video.ogle.devel |
|---|---|
| Message-ID | <[email protected]> |
Regardless, I think the dcop thing is a good idea because we can add the command to a script so that any application we launch can have the screen saver disabled, even if the app does not support it. And it doesn't matter about crashing in that case because the script will finish executing even if the prog in question dies. Damien ----- Original Message ----- From: Bj|rn Englund <[email protected]> Date: Thu, 16 Jan 2003 12:29:35 +0100 To: [email protected] Subject: Re: [Ogle-devel] screensaver events > Thu Jan 16 2003, Neil Stevens wrote: > > > If an app does "pause" and then crashes there won't be a resume, > > > so a "reset" option which resets the timer would be better(or also > > > needed). Or did I miss something? > > > > Hm, good point. I suppose an app that uses pause should have a crash > > handler that will resume. > > > > Reset would require the app to do so at intervals, which would be > > inefficient. > > > How inefficient would it be with dcop? > We use the "reset" model at intervals for both xscreensaver and for the > x internal one (XResetScreenSaver). > Even with a signal handler you won't be able to catch kill/stop. > I think both methods should be available. > > The best would be if there was some standard way to do this for all > screensavers. Something like: > The screensaver sets a property on the > root window which contains a window id that the screensaver listens for. > (Like the windowmanagers do) > Using SendEvent one can send the on/off/reset commands to the > screensaver without knowing anything more. > This would be efficient and you wouldn't need to start different > external programs for different screensavers. > > /Björn > _______________________________________________ > Ogle-devel mailing list > [email protected] > http://lists.berlios.de/mailman/listinfo/ogle-devel -- ______________________________________________ http://www.linuxmail.org/ Now with POP3/IMAP access for only US$19.95/yr Powered by Outblaze