[MPlayer-dev-eng] [PATCH] Use XScreenSaverSuspend if supported

Ismail Donmez ismail at pardus.org.tr
Tue Apr 11 00:07:25 CEST 2006


Salı 11 Nisan 2006 01:03 tarihinde, Reimar Döffinger şunları yazmıştı: 
> Hi,
>
> On Tue, Apr 11, 2006 at 12:46:18AM +0300, Uoti Urpala wrote:
> > On Mon, 2006-04-10 at 20:49 +0300, Ismail Donmez wrote:
> > > Simpler version without XOpenDisplay , suggested by fredrik.
> >
> > This also removes the runtime checks that were in the original. Doesn't
> > this mean that if compiled with support for XScreenSaverSuspend, MPlayer
> > would fail to disable screensaver when running under an older X server?
>
> Huh? I'd think this can't be helped since the function (and actually the
> whole lib?) will not be available then. Or am I missing something? At
> least I am not a fan on dlopen hacks (despite the fact that I used them
> for OpenGL as well...)

Running display might not be running this extension. So you have to check if 
the current display runs the extension.

Regards,
ismail
-- 
<Terwou> \\o \o> <o/ o//
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060411/30d622f9/attachment.pgp>


More information about the MPlayer-dev-eng mailing list