Re: FVWM: Java applications don't get keyboard focus

Pavel Vávra <[email protected]>
Newsgroups gmane.comp.window-managers.fvwm
Message-ID <[email protected]>
On Mon, 31 Jul 2017 18:17:37 -0400 (EDT)
Robert Heller <[email protected]> wrote:

> At Mon, 31 Jul 2017 17:23:59 -0400 Dan Espen <[email protected]> wrote:
> 
> > 
> > Robert Heller <[email protected]> writes:
> > 
> > > At  Robert Heller <[email protected]> wrote:
> > >
> > >> 
> > >> I am trying to use the Arduino IDE and it is not letting me give it keyboard
> > >> focus. I too am using FVWM. Even when I launch it in its own desktop, it does
> > >> not work. I cannot seem to make the Arduino IDE take keyboard focus, I can
> > >> click endlessly on the window and nothing happens. I can use the menus and
> > >> click anywhere in the sketch window and move the input position (with the
> > >> mouse, never with the keyboard). I don't want to hack the Arduino IDE code
> > >> itself, unless that is the only solution. Is there something in .fvwm2rc I can
> > >> set to fix this? The Arduino IDE *used* to work just fine. I *guessing* it is
> > >> something about the newer versions of CentOS (presently CentOS 6, kernel
> > >> version 2.6.32-696.6.3.el6.x86_64) or FVWM (2.6.6-1.el6) I am using now (the
> > >> last time I was sure it was working was with CentOS 5 and fvwm
> > >> 2.5.26-2.el5.2). Even when I force the Arduino IDE to use Java 1.6, it still
> > >> does not work. I have version 1.0.5 of the Arduino IDE. 
> > >
> > > OK, it appears that Java apps (or at least the Arduino IDE) does not really 
> > > like:
> > >
> > > Style "*" !FPFocusByProgram
> > >
> > > I added:
> > >
> > > Style "*Arduino* FPFocusByProgram
> > >
> > > and the Arduino IDE is now working properly.
> > >
> > > Why is that?
> > 
> > I haven't looked at any code but the documentation
> > says:
> > 
> >   The FPFocusByProgram style allows windows to take the focus themselves.

Wow! FPFocusByProgram combined with FPLenient solved my problem with Java GUI.
It seems it has no visible side-effects.
Thanks very much!
P.


> > 
> > So, my guess is that Arduino is using XSetInputFocus()
> > and does not like getting focus any other way.
> > Programs should allow the window manager to control focus.
> 
> It is not "Arduino" as much as OpenJDK is doing that.
> 
> > 
> 
> -- 
> Robert Heller             -- 978-544-6933
> Deepwoods Software        -- Custom Software Services
> http://www.deepsoft.com/  -- Linux Administration Services
> [email protected]       -- Webhosting Services
>        
>
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlmUEasACgkQAacufIWD8qf+SgCbBtAkcaoUnT77StPXjZHZ9wly
mbUAn2jAIs36UVGzF3HLtJZVPZC75GlY
=iqnC
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.