I typically had the opposite problem: java applications taking keyboard focus 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-apps-stealing-focus-in-linux-window-managers/2820707#2820707 -----Original Message----- From: gi1242+f...@gmail.com [mailto:gi1242+f...@gmail.com] Sent: Thursday, July 27, 2017 10:13 PM To: fvwm@fvwm.org 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.