On Mon, 18 Feb 2008, Chris Rouch wrote:
Some applications, particularly openoffce and firefox have a habit of
automatically raising their window or forcing it to have focus. Is
there anyway to prevent this? I already have
Style "*" SkipMapping
Style * DontRaiseTransient, DontLowerTransient
Style * DontStackTransientParent
Style * GrabFocusTransientOff
but I still see this unwanted behaviour.
There are a few possible reasons for this behavior. Most of them can be
disabled by fvwm styles, or function modifications. Howeverr if the
program uses X-requests to focus the window diectly (as for example Matlab
does with figures) the only way is to intercept the call on application
level.
You will want to look at the functions UrgencyFunc and
EWMHActivateWindowFunc. These may be activated by programs setting
specific hints, and have defaults provided by fvwm that will focus and
rais the window affected.
You may also be interested in the style EWMHIgnoreStackingOrderHints, and
possible other styles related to EWMH.
/Viktor