home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!know!mips2!news.bbn.com!usc!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!gmd.de!Germany.EU.net!mcsun!sun4nl!sci.kun.nl!cs.kun.nl!leonp
- From: leonp@cs.kun.nl (Leon Pillich)
- Newsgroups: comp.windows.x
- Subject: Re: Periodic Alarm Events in X-Windows
- Message-ID: <BxMG88.LvA@sci.kun.nl>
- Date: 12 Nov 92 21:12:07 GMT
- References: <1992Nov11.002020.5216@cbnewsl.cb.att.com> <1992Nov11.005411.2927@PA.dec.com>
- Sender: news@sci.kun.nl (NUnet News Owner)
- Organization: University of Nijmegen, The Netherlands
- Lines: 23
-
- I did something similar, though I don't know
- if it's a clean way. It sure looks elegant.
-
- First: set up an alarm signal handler
- Second: create your own client event with a unique identifier for the
- timer and send it with XSendEvent. XFlush after the XSendEvent.
-
- This is shortly how I did it,
- if you wanna see some code, send me some email and I will
- send you some simple code implementing this scheme.
-
- BTW: I also tried implementing such a thing with Xt timer callbacks,
- but that didn't work well. Some problems: it cannot be used when you are only
- using Xlib and it doesn't fit in weel with the normal event lopp thing
- of handling X events.
-
-
- Leon Pillich
- University of Nijmegen, Holland
- email: leonp@cs.kun.nl
- -------------------------------------------------------------
- Life is what's happening when you're making other plans ...
- John Lennon
-