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?

> 
> My .fvwm2rc has:
> 
> Style "*" ClickToFocus
> 
> 
> At Mon, 31 Jul 2017 11:57:18 +0000 "Shriver, Daniel" <[email protected]> 
> wrote:
> 
> > 
> > I typically had the opposite problem: java applications taking keyboard foc=
> > us when I wanted them to have none.
> > 
> > I suggest you play around with the top level graphical object you use, and =
> > setFocusableWindowState().
> > 
> > See this StackOverflow thread:
> > 
> > https://stackoverflow.com/questions/2820014/how-do-i-stop-workaround-java-a=
> > pps-stealing-focus-in-linux-window-managers/2820707#2820707
> > 
> > -----Original Message-----
> > From: [email protected] [mailto:[email protected]]=20
> > Sent: Thursday, July 27, 2017 10:13 PM
> > To: [email protected]
> > Subject: Re: FVWM: Java applications don't get keyboard focus
> > 
> > On Fri, Jul 28, 2017 at 02:11:53AM +0300, Oleksandr Gavenko wrote:
> > 
> > > I've lived with this problem since 2008. Or even earlier.
> > 
> > Ha ha. Me too! I even posted about this back in 2007 or so, but could never=
> >  fix it.
> > 
> > My work around was to launch Java applications (mainly Matlab) in their own=
> >  desktop. But even then it sometimes requires I manually click the mouse...
> > 
> > GI
> > 
> > --
> > Once you've seen one shopping center, you've seen a mall.
> > 
> > 
> > 
> >                                                                             
> >                            
> 

-- 
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
[email protected]       -- Webhosting Services
     

Reply via email to