On Mon, 31 Jul 2017 18:17:37 -0400 (EDT) Robert Heller <hel...@deepsoft.com> wrote:
> At Mon, 31 Jul 2017 17:23:59 -0400 Dan Espen <dan1es...@gmail.com> wrote: > > > > > Robert Heller <hel...@deepsoft.com> writes: > > > > > At Robert Heller <hel...@deepsoft.com> 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 > hel...@deepsoft.com -- Webhosting Services > >
pgp2HJfINGW4z.pgp
Description: PGP signature