Re: Howto process X11 events async'ly

2005-01-22 Thread Mike Hearn
On Sat, 22 Jan 2005 11:23:31 -0600, Robert Shearman wrote: > It looks like we do the equivalent of select on the result from > ConnectionNumber. I have no idea what this is, but hopefully you might. > Grep the sources for "display_fd". I think all toolkits do this: just have a main loop based on

Re: Howto process X11 events async'ly

2005-01-22 Thread Robert Shearman
Peter Quiring wrote: I'm developing my own library and I'm in the process of porting it over in Linux. I can get X11 to display the graphics and process events, but the only problem I have is with processing events without wasting CPU power. How do you process events without constantly polling?

Howto process X11 events async'ly

2005-01-22 Thread Peter Quiring
I'm developing my own library and I'm in the process of porting it over in Linux. I can get X11 to display the graphics and process events, but the only problem I have is with processing events without wasting CPU power. How do you process events without constantly polling? What I've done is