FVWM: Autofocus on matlab windows

2009-11-25 Thread mathias
Dear all, I use fvwm under debian :

fvwm -V
fvwm 2.5.28 (from cvs) compiled on Aug 17 2009 at 22:43:46
with support for: ReadLine, RPlay, Stroke, XPM, PNG, SVG, Shape, XShm, SM, Bidi 
text, Xinerama, XRender, XCursor, XFT, NLS

I haevily use matlab and have the very annoying feature, 
that every time a figure (coming in an own window) is adressed
this window gets the focus. 
I already searched the web and found three solutions, none of which worked:

DestroyFunc UrgencyFunc

DestroyFunc EWMHActivateFunc

Style *   !FPFocusByProgram

Is there any other solution which I may try?

Thanks in advance and kind regards

Mathias Palm


-- 
Dr. Mathias Palm

Institut of Environmental Physics
Room:   FB1 U3235

University of Bremen
P.O. Box 330440
D-28334 Bremen

Phone   +49 (0)421 218 62179
Fax +49 (0)421 218 98 62179

Email:  math...@iup.physik.uni-bremen.de
WWW:www.ram.uni-bremen.de   




Re: FVWM: Autofocus on matlab windows

2009-11-25 Thread despen
math...@iup.physik.uni-bremen.de writes:

 Dear all, I use fvwm under debian :

 fvwm -V
 fvwm 2.5.28 (from cvs) compiled on Aug 17 2009 at 22:43:46
 with support for: ReadLine, RPlay, Stroke, XPM, PNG, SVG, Shape, XShm, SM, 
 Bidi text, Xinerama, XRender, XCursor, XFT, NLS

 I haevily use matlab and have the very annoying feature, 
 that every time a figure (coming in an own window) is adressed
 this window gets the focus. 
 I already searched the web and found three solutions, none of which worked:

This appears to be a very old issue, check here:

http://www.mail-archive.com/fvwm-work...@lists.math.uh.edu/msg00373.html

I don't know if this was ever resolved but you might want to check
with Matlab.



Re: FVWM: Autofocus on matlab windows

2009-11-25 Thread Jonathan Kotta
On Wed, Nov 25, 2009 at 12:08 PM,  des...@verizon.net wrote:
 math...@iup.physik.uni-bremen.de writes:

 Dear all, I use fvwm under debian :

 fvwm -V
 fvwm 2.5.28 (from cvs) compiled on Aug 17 2009 at 22:43:46
 with support for: ReadLine, RPlay, Stroke, XPM, PNG, SVG, Shape, XShm, SM, 
 Bidi text, Xinerama, XRender, XCursor, XFT, NLS

 I haevily use matlab and have the very annoying feature,
 that every time a figure (coming in an own window) is adressed
 this window gets the focus.
 I already searched the web and found three solutions, none of which worked:

 This appears to be a very old issue, check here:

 http://www.mail-archive.com/fvwm-work...@lists.math.uh.edu/msg00373.html

 I don't know if this was ever resolved but you might want to check
 with Matlab.



IIRC, Matlab uses Java in some places.  I have the following in my
config for some misbehaving Java apps:

# java apps think they should handle focusing, but do a terrible job
# this lets FVWM control focusing
Style sun-awt-X11-* Lenience
# same with Wine
Style Wine Lenience

You may want to verify that the figure windows match with FvwmIdent.

-- 
Thanks,

Jonathan Kotta

Hofstadter's Law:
It always takes longer than you expect, even
when you take into account Hofstadter's Law.