On Monday 03 November 2003 23:09, Carsten Haitzler wrote:
> On Mon, 3 Nov 2003 23:03:34 +0100 Thomas Reitelbach <[EMAIL PROTECTED]>
> babbled:

> > I try to use the XScreensaver extension for my app.
> > I'd like to hide my application after a while when the user does not
> > interact 
 with my app-widget. Means: If the user does not move the mouse
> > over my widget for a specified time, the widget should hide.
> > My first idea was to query X screensaver events, which in its basics
> > works. 
 But i've only been able to query events for the entire X11
> > display. 
> > Can someone tell me please: Is it possible to retrieve information from
> > the 
 XScreensaver extension for only a specified widget and not for the
> > entire display? I'd like to ask the screensaver "how long did my
> > application not receive any mouse events?" or "how long has the user been
> > idle regarding my app-window?"
> > 
> > I hope i did make myself clear enough.
> > 
> > Can someone give me advice? I searched google a lot without finding any
> > good 
 documentation about the XScreensaver extension and how to use it.
>
> 
> no. the screensaver extension is designed to do the whole display - moue
> AND
 keyboard. just "do it yourself". you get events on your widget/window.
> whenever you get an event delete the old timer you set up (if you have one)
> then create a new timer to time out in N seconds (or minutes). when the
> timer runs, hide the widget. pretty simple. you'll have to figure out how
> to hook to motion/button etc. events through your widget set., but they are
> the basics of what drives your widget set anyway.

Thank you, this is exactly the information i needed to _not_ search any longer 
for a XScreensaver solution.
I'll do it myself, just want to be sure to not reinvent the wheel :-)

Thank you,
Thomas

-- 
Just because the message may never be received does not mean it is 
not worth sending.

Attachment: pgp00000.pgp
Description: signature



Reply via email to