Re: FVWM: New Firefox tabs and workspace switching

2013-08-26 Thread sisyphus
On 27/08/13 11:25, Thomas Adam wrote:

> It's almost as if I have you the answer.  
>
> I never said to do this.  Your confusion here is because
> you've decided to conflate two completely different concepts
> and treat them the same.  They're not.

Fair enough. Thanks again for the answer.
-Grant




Re: FVWM: New Firefox tabs and workspace switching

2013-08-26 Thread Thomas Adam
On Tue, Aug 27, 2013 at 11:19:05AM +1200, sisyphus wrote:
> On 26/08/13 22:03, Thomas Adam wrote:
> 
> > SkipMapping has nothing to do with switching focus
> > after the window has been mapped.
> 
> But the FVWM manpage describes SkipMapping like this:
> 
> > SkipMapping tells fvwm not to switch to the desk the
> > window is on when it gets mapped initially (useful
> > with StartsOnDesk or StartsOnPage).

Right---it uses X11 terminology, the point here being "mapped".  This means
"appears".

> You suggested I use this ...
> 
> > DestroyFunc EWMHActivateWindowFunc
> > AddToFunc EWMHActivateWindowFunc
> > + I nop
> 
> And it works! With the SkipMapping style plus the Nop EWMH function, no
> windows that I've tested will switch the desktop. Not even Firefox tabs.

That's why I said you had to do that.  It's almost as if I have you the
answer.  ;)

> But if I try to remove the SkipMapping style, then all new windows once
> again switch the desktop. So the SkipMapping style has to stay.

I never said to do this.  Your confusioon here is because you've decided to
conflate two completely different concepts and treat them the same.  They're
not.

-- Thomas Adam

-- 
"Deep in my heart I wish I was wrong.  But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)



Re: FVWM: New Firefox tabs and workspace switching

2013-08-26 Thread sisyphus
On 26/08/13 22:03, Thomas Adam wrote:

> SkipMapping has nothing to do with switching focus
> after the window has been mapped.

But the FVWM manpage describes SkipMapping like this:

> SkipMapping tells fvwm not to switch to the desk the
> window is on when it gets mapped initially (useful
> with StartsOnDesk or StartsOnPage).

You suggested I use this ...

> DestroyFunc EWMHActivateWindowFunc
> AddToFunc EWMHActivateWindowFunc
> + I nop

And it works! With the SkipMapping style plus the Nop EWMH function, no
windows that I've tested will switch the desktop. Not even Firefox tabs.
But if I try to remove the SkipMapping style, then all new windows once
again switch the desktop. So the SkipMapping style has to stay.

So yes, I have a solution :-) Thanks for your help.
-Grant



Re: FVWM: New Firefox tabs and workspace switching

2013-08-26 Thread Thomas Adam
On 26 August 2013 10:47, sisyphus  wrote:
> So I must ask:-
>
> 1]  Can someone please tell me why new Firefox tabs don't observe
> the SkipMapping style above.

It does.  SkipMapping has nothing to do with switching focus after the
window has been mapped.

> 2]  What else do I need to do to prevent the involuntary switching
> of workspaces in all cases.

You probably want this:

DestroyFunc EWMHActivateWindowFunc
AddToFunc EWMHActivateWindowFunc
+ I nop

-- Thomas Adam



FVWM: New Firefox tabs and workspace switching

2013-08-26 Thread sisyphus
I want to prevent desktops/workspaces from being switched by newly
created windows. And for most new windows, doing this

Style * SkipMapping

will prevent the switching of desktops.

But with Firefox, whenever a new tab is opened, the desktop will still
switch over to the Firefox workspace. For instance, say I have Thunar
and Firefox opened on separate workspaces. If I then double-click a
saved webpage in Thunar, the desktop immediately switches to Firefox's
workspace. Annoying...

So I must ask:-

1]  Can someone please tell me why new Firefox tabs don't observe
the SkipMapping style above.
2]  What else do I need to do to prevent the involuntary switching
of workspaces in all cases.

Fvwm version 2.5.30 on Debian stable. My current minimal config :
http://pastebin.com/FMxN6r1c

Thanks in advance,
Grant