|
From: Ethan M. <merritt@u.washington.edu> - 2009-02-06 23:08:09
|
On Friday 06 February 2009 13:57:41 Petr Mikulik wrote: > > 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. I think the correct patch on the gplt_x11.c end is something like the one attached here. -- Ethan A Merritt |