On Mon, 18 Sep 2006 16:17:21 +0200
Ralf Fassel <[EMAIL PROTECTED]> wrote:
> * Thomas Adam
> | > Look att UrgencyFunc in the manpage. It might be that firefox
> | > (incorrectly) use the urgency hint when a new tab is opened. In
> | > that case Destroying UrgencyFunc should stop the behavior, but you
> | > might want to redefine it in some other way to maybe just ignore
> | > firefox.
> |
> | Nope, it's certainly not that. I can't even reproduce this, and I
> | have the same version of Firefox as listed. The only thing I can
> | think of is if something like FvwmEvent (perhaps listening on
> | 'visible_name') is somehow causing it.
>
> It's EWMHActivateWindowFunc.
>
> The default seems to be in fvwm/ConfigFvwmDefaults:
>
> # Needed by the ewmh support
> AddToFunc EWMHActivateWindowFunc
> + I Iconify off
> + I Focus
> + I Raise
>
> Victors message has set me up the right path to check with the
> sources, and in the default configuration files I found this function
> and just removed it: no more switching the desktop when firefox gets
> called.
> I'll try w/o EWMHActivateWindowFunc and see what else breaks :-)
>
> Q: how would I write something like
> if application != firefox then
> ... original code
> endif
> in EWMHActivateWindowFunc?
>
> I guess it would be something along the lines of
> Current ("Firefox") Break
> but I don't want the current window, but the one which initiated the
> call.
So use ThisWindow in place of Current, and use the window's class name,
not the example you have above. If you're unsure what the class name
of Firefox is, use FvwmIdent, or xprop, etc.
Given that I too have that function defined, I fail to see why your
version of Firefox is causing it to be run, whereas mine is not,
despite the fact that we both have the same versions. I suppose YMMV.
-- Thomas Adam