I see. This should do the trick. Agreed, that's what we'd need in Iup.
/Jörg Am 27.07.2015 um 12:48 schrieb Nodir Temirkhodjaev: > Monday, July 27, 2015, 3:07:18 PM, Jörg F. Wittenberger wrote: >> Am 25.07.2015 um 16:24 schrieb Nodir Temirkhodjaev: >>>> The best thing I could hope for would be if I could ask Iup for a file >>>> descriptor to listen on. Whenever data is ready to read on this fd, I >>>> would know that Iup wants to become active and I should call the stepper >>>> until it eat up all this input. > >>> We need new global attribute (maybe "XSOCKETFD"), >>> which will contain result of ConnectionNumber(iupmot_display). > >> Alike. >> But this one would only work for Motif, wouldn't it? > > Similar in gtkSetGlobalAttrib(): > IupSetGlobal("XSOCKETFD", ConnectionNumber(xdisplay)); > > My usage of IUP with poll()-like based message loop in Windows: > https://github.com/tnodir/wipf/blob/master/bin/lua/main.lua#L64 > > -- Nodir ------------------------------------------------------------------------------ _______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users