[comp.windows.x] Async event handling, how to do it?

jason@tfs.COM (Jason Venner) (02/27/91)

I have an application (really a minimal rewrite of an old Windowing
package to talk to X).

The old applications are not event driven (I know I know, but that's
the way they go:-()

I need a clean way to deal with ExposureEvents that can be done async.

I have tried forking a separate thread, and doing a XNextEvent, but
that lock's the display and hangs the application.

I tried doing a select on the file descriptor, and then doing
XCheckWindowEvent, but that hangs the code too.

Help!

Jason