|
From: Petr M. <mi...@ph...> - 2009-02-06 22:15:11
|
> The intent is to update GPVAL_TERM_WINDOWID when the main program receives a > "new window" event from gnuplot_x11, right? > > I am trying to point out that not every command "set term x11 <num>" creates > a new window. If an old window is re-used, you won't receive this event and > therefore GPVAL_TERM_WINDOWID will not be updated. > > The patch currently has the event generated each time the buffered command > list is re-executed, which I think is not right. Probably it should go in > pr_window(), immediately after the call to XCreateWindow(). When I tested it, it was filling the variable after the "plot" command has been completed (not after "set term x11"), i.e. after the graph has been drawn. Petr |