> I think you are barking up the wrong tree. If you want to use an > event-driven sub-system you need to run an event loop.
Well, but I only want part of R's event loop, namely handling of some specific X11-events. Of course, I do have a sort of event-loop, except that the main category of "events" is requests coming from the main application/thread. For this it's simply more practical to run my "own" event loop. The only problem was how to trigger processing of X11-events from there. Anyway, you will see in my follow-up, that I found a solution that does just what I want. > There is a lot of new information in 2.1.0 on building a front-end. > Please read it. Yes, I've seen that, and it's very helpful compared to the documentation available when I had last checked (pre 2.0.0). Regards Thomas Friedrichsmeier P.S.: In case you're interested, the project I'm working on is this: http://rkward.sourceforge.net ______________________________________________ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel