[Nautilus-list] Re: Integration of gmc and nautilus desktop directories.

X events generally have timestamps in them (units is milliseconds since
the server started, if memory serves); certainly both keyboard and
mouse events have timestamps in them.

I presume GTK has some method to let you see the timestamps...
(maybe not a good presumption: this shows I've never done any GTK

So if you correlate the timestamps against the current time on the client 
machine, you can see if it has been a long time since the last keyboard 
or mouse event.

			- Jim

> Sender: miguel ximian com
> From: Miguel de Icaza <miguel ximian com>
> Date: 13 Apr 2001 11:19:14 -0400
> To: jg pa dec com (Jim Gettys)
> Cc: Alan Cox <alan redhat com>, hp redhat com (Havoc Pennington),
>         bill haneman ireland sun com (Bill Haneman),
>         jacob ximian com (jacob berkman), ian eazel com (Ian McKellar),
>         nautilus-list eazel com, gnome-hackers gnome org
> Subject: Re: Integration of gmc and nautilus desktop directories.
> -----
> > It is pretty easy to detect keyboard/mouse activity.  A compromise
> > to reduce network traffic would be to only stat things when it appears
> > the user has been active recently.
> Oh!  That is smart.  I could do that for my desktop rescan hack?
> How do I do this? 
> Miguel

Jim Gettys
Technology and Corporate Development
Compaq Computer Corporation
jg pa dec com

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