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.

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.

-- 
Dan Espen

Reply via email to