Em Tue, 9 Apr 2019 20:55:30 +0200 Dr. Jürgen Sauermann <[email protected]> escreveu:
> Hi Hudson, > > not sure if I can do anything about this in a portable way. > > One thing that annoyed me in X from day one is that creating a new > window moves the focus to the new window. If the new window is for > output only then this is only annoying because you loose the focus in > the window that you are typing into (I'm a command-line guy). Hi Jürgen, Ghostscript traditionally has this same issue. Its plotting window is cannot be selected from the keyboard (Alt-Tab); when it is clicked, it stays/becomes visible, but the keyboard input still goes to the shell window. With GNU Octave (--no-gui), the plotting window takes the focus and control (for zoom, grid, etc.), and Alt-Tab brings you again to the terminal window. Currently, with GNU APL, the image window blinks and goes to the _far end_ of the Tab list (at least with my fluxbox version). I just found that Shift-Alt-Tab solves my question! (I was trying Alt-Tab, but then I needed to cycle over all windows to find the figure.) > > For that reason I grabbed the window back automatically after the > ⎕PLOT window > was created. If that causes the plot window to be minimized (I don't > know because > my machine behaves differently) (I noticed it does not become minimized.) > then you could try to comment out the > following > lines in *Quad_PLOT.cc* (around line 1330): > > * xcb_set_input_focus(conn, XCB_INPUT_FOCUS_PARENT,** > ** focusReply->focus, XCB_CURRENT_TIME);** > * > If not then please provide a solution to the problem. If it is > portable (and not creating > additional dependencies on libraries) then I will include it. > > Apart from that the *wmctrl* approach proposed by *enztec* looks good > to me. > > Best Regards, > /// Jürgen I liked very much the wmctrl approach. I just wonder whether the ⎕plot window can be placed as the next (nearest) alternating window. Do you need to use Shift-Alt-Tab instead of Alt-Tab? Thanks, Hudson > > > On 4/8/19 6:12 PM, Hudson Flavio Meneses Lacerda wrote: > > Hi. > > > > The ⎕plot window, just after being drawn, jumps to the background > > (minimized). Is there any way to control its focus from GNU APL? > > > > (I do not have GNOME; it looks like FluxBox is not 100% compatible > > with new GNOME versions.) > > > > (My workaround is to memorize the layer as the top.) > > > > Hudson > > > > > > > > >
