[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-hardware-devel
Subject: Re: [Kde-hardware-devel] PowerManager idleTime
From: Sebastian Kuegler <sebas () kde ! org>
Date: 2008-05-13 20:25:03
Message-ID: 200805132225.03724.sebas () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Tuesday 13 May 2008 22:04:37 Thomas Gillespie wrote:
> I'm developing a power manager, and have the following code to get the idle
> time:
>
>---------------------- #include <QX11Info>
> #include <X11/extensions/scrnsaver.h>
>
> ///Return the Xserver idle time in msecs
> int idleTime()
> {
> XScreenSaverInfo* mitInfo = 0;
> mitInfo = XScreenSaverAllocInfo ();
> XScreenSaverQueryInfo (QX11Info::display(), DefaultRootWindow
> (QX11Info::display()), mitInfo);
> return mitInfo->idle;
> }
>----------------------
>
> I think this would be better pushed into solid powermanager, or something
> similar to this? Any opinions? I could knock up a patch if this sounds ok.
X people had added a function some time ago that you feed a time and it
notifies you when this time has passed idle. I don't know the names,
though. :/
--
sebas
http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9
["signature.asc" (application/pgp-signature)]
_______________________________________________
Kde-hardware-devel mailing list
Kde-hardware-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-hardware-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic