|
From: Petr M. <mi...@ph...> - 2009-02-06 08:45:49
|
> https://sourceforge.net/tracker/index.php?func=detail&aid=2570385&group_id=2055&atid=302055 > [ 2570385 ] GPVAL_X11_WINDOWID I will have a look. > 3. New global variable current_x11_windowid should be placed in an .h + .c > file. Which one? > That will probably not work. There can be multiple x11 windows open at > the same time, so there is no "current" one. Since you can associate a > window number with each one, however, we might be able to do: > set term x11 5 > print TERM_X11_WINDOW_5_ID The current one is the current active one. It is the last one from "set term x11". The value of GPVAL_TERM_WINDOWID is to be used by a front-end (such as Octave) using gnuplot for drawings; thus, it can fetch the Window ID just after the plot command. > 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? > > TERM_something Note there is already GPVAL_TERM. As all automatic variables are prefixed GPVAL_ (except for MOUSE_), the new one should become GPVAL_TERM_WINDOWID. --- PM |