It's certainly not advisable to make direct X11 calls in octave which
is supposed to run on windows ....
I'm not sure if you can return the focus to the octave window in
general, since the octave process usually does not "own" the windows
in which the command line lives -- this is just some random terminal.
In an IDE (like matlab's), where the terminal & the figure window
belong to the same process, managing these focus switches would be
trivial.
If you run matlab w/o an IDE, from a terminal, will it still switch
focus from the figure to the terminal?
Shai