KIdleTime : provide a settable resolution for the polling backends?

2015-11-16 Thread René J . V . Bertin
Hi, Working on modernising the OS X plugin for KIdleTime, I realised that there is no mechanism foreseen to set the frequency at which the current system idle time should be sampled on those platforms that need to use a polling approach (OS X, MS Windows and apparently also XScreenSaver). The

Re: KIdleTime : provide a settable resolution for the polling backends?

2015-11-16 Thread René J . V . Bertin
Aleix Pol wrote: > I guess it's because it shouldn't poll necessarily, but get a > notification whenever the OS considers appropriate. Polling is > considered a bad practice in general. I'd agree, but not all OSes provide other mechanisms, in which case polling is the only remaining option.

Re: KIdleTime : provide a settable resolution for the polling backends?

2015-11-16 Thread Aleix Pol
On Mon, Nov 16, 2015 at 10:31 PM, René J.V. wrote: > Hi, > > Working on modernising the OS X plugin for KIdleTime, I realised that there > is no mechanism foreseen to set the frequency at which the current system > idle time should be sampled on those platforms that need to

Re: KIdleTime : provide a settable resolution for the polling backends?

2015-11-16 Thread Martin Graesslin
On Tuesday, November 17, 2015 8:42:31 AM CET Martin Graesslin wrote: > On Monday, November 16, 2015 1:31:02 PM CET René J.V. Bertin wrote: > > Hi, > > > > Working on modernising the OS X plugin for KIdleTime, I realised that > > there > > is no mechanism foreseen to set the frequency at which the

Re: KIdleTime : provide a settable resolution for the polling backends?

2015-11-16 Thread Martin Graesslin
On Monday, November 16, 2015 1:31:02 PM CET René J.V. Bertin wrote: > Hi, > > Working on modernising the OS X plugin for KIdleTime, I realised that there > is no mechanism foreseen to set the frequency at which the current system > idle time should be sampled on those platforms that need to use a