Subject: XSendEvent()
To: None <netbsd-help@NetBSD.ORG>
From: Jochen Schmidt <crashcore@t-online.de>
List: netbsd-help
Date: 07/23/1998 05:03:10
Hi,

I have a problem with XLib-programming.
I want to write a X11-program that can 
react on Keyboard-events and drawing 
simplegraphics like a moving worm to
the same time.
When I use XNextEvent, the eventloop blocks
until I receive a event. It seems that there 
are no timer-events in the Xlib. (I haven`t found something similar in the
Xlib-tutorials I have)
So i`ve tried to fork a daemon in mz program,
that has a while(1) loop which waits some time 
with nanosleep() and after that it sends an ExposeEvent to the parent-process.
But my Parent-process doesn`t get any Events from the daemon.
Can someone give me a little sample-script how
I can do that? (Or explain me a better method!)