[mythtv] screensaver patch [PATCH]

Anduin Withers awithers at anduin.com
Fri Feb 27 19:56:40 EST 2004


> I applied a simpler version of this, using MythContext rather than static
> storage and global functions, without all the #ifdefs and only handling
> the
> built-in X screensaver.

Here is a patch which adds back ResetScreensaver() and calls it when a valid
lirc key event is generated (a good thing for those of us using only a
remote to talk to myth).

Yes RestoreScreensaver() could be reworked so it would work instead (by
checking to see if the state had been saved before restoring it for example)
but three different operations really do deserve three functions.

Also added a call to XResetScreenSaver before DisableScreenSaver disables
the screen saver (setting the timeout to zero doesn't deactivate an active
screen saver).

-- 
Anduin Withers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myth_screen_lirc.patch
Type: application/octet-stream
Size: 1868 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20040227/8cfca189/myth_screen_lirc.obj


More information about the mythtv-dev mailing list