--===============1126372608== Content-Type: multipart/signed; boundary="nextPart1335595.oHoko35c3n"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1335595.oHoko35c3n Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 id= le > time: > >---------------------- #include > #include > > ///Return the Xserver idle time in msecs > int idleTime() > { > =A0 =A0 XScreenSaverInfo* mitInfo =3D 0; > =A0 =A0 mitInfo =3D XScreenSaverAllocInfo (); > =A0 =A0 XScreenSaverQueryInfo (QX11Info::display(), DefaultRootWindow > (QX11Info::display()), mitInfo); > =A0 =A0 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=20 notifies you when this time has passed idle. I don't know the names,=20 though. :/ =2D-=20 sebas http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9=20 --nextPart1335595.oHoko35c3n Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iQEVAwUASCn5H2dNh9WRGQ75AQLxbwf8DB6rpSdmgYnpyIFXl0iBAla+YqTAzGfU neoAWbBKHBFglQihrU8M9pBP8bnD1XL4PQeWCE3XrZ6iwNgnhcVqmhJqzFTcBGsP WLNUsxxognT/w+bKMX96VNWzEdFe0TX59glou07968pjHVvRMZA9ODaSfKF8RtFa /LF7klS47Vk3hAUFKznSpls7yUCe5mSuEAyDf19iJYc/BSLLj1ciDcePA9uv2AG4 iF6zwy1yzwSY7xTERKBZ6gjRPn7t6K1mJs9yQPsiB7oQr/p3soKedSh+nDkDPaKI ZnBKSkwIpNOmyfR4+v3CKVRclRMdFkYrWr+cXib9fHBi+0fNTewZPQ== =D/Qw -----END PGP SIGNATURE----- --nextPart1335595.oHoko35c3n-- --===============1126372608== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kde-hardware-devel mailing list Kde-hardware-devel@kde.org https://mail.kde.org/mailman/listinfo/kde-hardware-devel --===============1126372608==--