Fwd: Re: Turning off screensavers [xarafaxz at nxxx: KMplayer feature request]
Lubos Lunak
l.lunak at suse.cz
Thu Jan 12 13:40:02 GMT 2006
Hello,
what would be the right place for this in trunk (this = a function that apps
like movie players could use to turn screensaving on/off)? I'll probably add
it to 3.5.1 too, there I can simply dump it to KApplication, but I don't know
where to put it for KDE4. Note that this is not workspace stuff.
---------- Forwarded Message ----------
Subject: Re: Turning off screensavers [xarafaxz at nxxx: KMplayer feature
request]
Date: Wednesday 11 January 2006 14:57
From: Koos Vriezen <koos.vriezen at xs4all.nl>
To: kde-devel at kde.org
On 2006-01-11 13:39, Lubos Lunak wrote:
> Yes, but don't think we have any kdelibs code for that, right now one would
> need to do direct calls to the DPMS extension. Which, from looking at the
> code in kdesktop, isn't exactly trivial, so I'd prefer to put it in kdelibs
> if you want it - any idea where?
Some static Screen, Display or Desktop object, Qt has qApp->desktop().
> And I think that should be actually everything needed. There's code in our
> screensaver code that detect the state of DPMS and doesn't start saving if
> DPMS is off (used to be a GUI option, even defaulting to off, but that's
> not longer the case with 3.5).
Yes only one option for both DPMS and screensaver from application
perspective. It would be even nicer if an application can turn it off
and restore it again, so it wouldn't have to remember if it was on or
not. (Pushing my luck a bit further, and when the application exits it
would automatically be restored :-)
Koos
-------------------------------------------------------
--
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o. e-mail: l.lunak at suse.cz , l.lunak at kde.org
Drahobejlova 27 tel: +420 2 9654 2373
190 00 Praha 9 fax: +420 2 9654 2374
Czech Republic http://www.suse.cz/
More information about the kde-core-devel
mailing list