Re: system idle? / getting XEvents



Hi,

Thanks for reply,

On Mon, Sep 10, 2001 at 03:09:42PM -0400, Havoc Pennington was heard to remark:
> 
> linas linas org (Linas Vepstas) writes:
> > 1) is anyone working on any sort of thingy that will tell me if/how
> > long the keyboard/mouse has been idle?  I want to add a feature
> > to the gtt (gnome time tracker) that will turn it off after a period
> > of inactivity.
> 
> I'd say copy xscreensaver... which you did:

and it was harder than it seemed, but it now works ...

... anyone care to add this as a standard gdk feature? 

> Install an event filter (gdk_window_add_filter), pass NULL for the
> window argument to get all windows.

And this will get me events for *all* windows on the screen, not just my
app windows?   And, as new windows are created by other apps, I'll get 
keystroke events from them as well ?

(which, btw, always struck me as a security hole with the X Server,
as it allows rogue x clients to sniff passwords typed in other windows ... 
but that's another matter).


--linas





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]