|
From: Petr M. <mi...@ph...> - 2009-02-02 23:46:32
|
> > 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. Yes, it should work this way. Maybe the window ID is hidden somewhere in the X11 structure? --- PM |