Howto process X11 events async'ly

Mike Hearn mh at
Sat Jan 22 11:43:14 CST 2005

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 a poll() or
select() call and then use the X11 connection fd. That way you wake up
when data is available and can process it.

thanks -mike

More information about the wine-devel mailing list