bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] ⎕plot focus


From: Dr . Jürgen Sauermann
Subject: Re: [Bug-apl] ⎕plot focus
Date: Tue, 9 Apr 2019 20:55:30 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.5.1

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).

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) 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


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
>
>
>
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]