Am 27.07.2015 um 15:54 schrieb Nodir Temirkhodjaev: >> Somehow my attempts to do something alike (though I'm using the gtk >> version on Linux), fail. > >> The point is: where to run the IupLoopStep, ~flush etc. > >> I gather that should be done from the same thread running the >> IupMainLoop. Therefore the only way is to run those from a callback. >> Correct? > > No. Don't use IupMainLoop().
Ah! I thought that the docs mentioned that IupLoopStep would be *no* substitute to running the main loop. Actually I recall having tried this and found out the hard way. But apparently it works for you. So I shall retry. > You should add IUP's socket descriptor to your poll() to wait readable state. > Then run IupLoopStep() etc, when event triggers. > (I assume you added "XSOCKETFD" attr.) ------------------------------------------------------------------------------ _______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users