Discussion:
FVWM: New Firefox tabs and workspace switching
sisyphus
2013-08-26 09:47:35 UTC
Permalink
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
Thomas Adam
2013-08-26 10:03:44 UTC
Permalink
Post by sisyphus
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.
Post by sisyphus
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
sisyphus
2013-08-26 23:19:05 UTC
Permalink
Post by Thomas Adam
SkipMapping has nothing to do with switching focus
after the window has been mapped.
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 ...
Post by Thomas Adam
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
Thomas Adam
2013-08-26 23:25:07 UTC
Permalink
Post by sisyphus
Post by Thomas Adam
SkipMapping has nothing to do with switching focus
after the window has been mapped.
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".
Post by sisyphus
You suggested I use this ...
Post by Thomas Adam
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. ;)
Post by sisyphus
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.)
sisyphus
2013-08-26 23:37:23 UTC
Permalink
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

Loading...