|
From: Petr M. <mi...@ph...> - 2009-02-05 23:47:27
|
> > > Automatic varible > > > GPVAL_TERM_WINDOWID > > > could be filled after each "plot". > > > > > > How can this be done? Could x11.trm read it? Or should this be obtained via > > > gp_exec_event? > > > > I think that it is best done by gnuplot_x11 at the time the plot window > > is first opened. The information can be sent back to gnuplot proper by > > calling gp_exec_event(). > > > > I do not know exactly what call into the X libraries would need to be > > added in gplt_x11.c, but there must be one. On the receiving end, it > > just needs another case statement in mouse.c (do_event). That part is > > trivial. I've put a preliminary version of the patch here: https://sourceforge.net/tracker/index.php?func=detail&aid=2570385&group_id=2055&atid=302055 [ 2570385 ] GPVAL_X11_WINDOWID It needs some further work: 1. The number 12345 in gplt_x11.c should be replaced by the actual window id. This is a task for an X11 guru. 2. The same for wxt terminal. 3. New global variable current_x11_windowid should be placed in an .h + .c file. Which one? 4. Should it be called GPVAL_TERM_WINDOWID or GPVAL_X11_WINDOWID ? The wxt terminal can run not only under X11, but e.g. under windows as well. Is there something like window id? --- PM |