Discussion:
FVWM: Prevent window from raising itself?
Tom Horsley
2014-05-21 19:37:46 UTC
Permalink
The latest version of google-chrome has the annoying habit of
forcing itself to the top of the stack when I right click on
a link (thus utterly obscuring the window I was planning on
pasting the copied link into :-).

I have read through the descriptions of all the style settings
that seem to have anything to do with stacking order and I
can't find anything that looks as if it can tell fvwm to
ignore stacking order changes from windows.

Have I finally found something I can't do with fvwm, or
am I just missing (or misreading) the docs?
Dominik Vogt
2014-05-21 20:12:43 UTC
Permalink
Post by Tom Horsley
The latest version of google-chrome has the annoying habit of
forcing itself to the top of the stack when I right click on
a link (thus utterly obscuring the window I was planning on
pasting the copied link into :-).
I have read through the descriptions of all the style settings
that seem to have anything to do with stacking order and I
can't find anything that looks as if it can tell fvwm to
ignore stacking order changes from windows.
I'm sorry that the documentation - especially of the options
disabling unwanted application behaviour - is a mess. There are
too many options to document efficiently. The best bet to find
them is to look for styles containing the words "ignore", "gnome"
or "ewmh", but that is only a rule of thumb.
Post by Tom Horsley
Have I finally found something I can't do with fvwm, or
am I just missing (or misreading) the docs?
Are you kidding? ;-) _Any_ application behaviour that ever
annoyed me can be disabled in fvwm (because if it cannot, I'll
make a patch). The hard thing is to find out in which way the
application does it.

Try these settings one by one to see which one works.

-- snip --
# annoying behaviour through the application trying to restack its windows?
Style <stylename> IgnoreRestack

# annoying behaviour through Gnome hints?
Style <stylename> GnomeIgnoreHints

# annoying behaviour through EWMH hints?
Style <stylename> EWMHIgnoreStackingOrderHints

# annoying behaviour through UrgencyFunc?
destroyfunc UrgencyFunc
destroyfunc UrgencyDoneFunc
addtofunc UrgencyFunc
+ I echo Ignoring UrgencyFunc $[w.id] $[w.name]

# annoying behaviour through EWMHActivateWindowFunc?
destroyfunc EWMHActivateWindowFunc
addtofunc EWMHActivateWindowFunc
+ I echo Ignoring EWMHActivateWindowFunc $[w.id] $[w.name]
-- snip --

The drawback of deleting UrgencyFunc or EWMHActivateWindowFunc is
that these functions then won't work for _any_ application. For
me that is exactly what I want. You may want to use my
replacement functions anyway if you don't like windows putting
themselves in the front anyway.

Please report which one fixes your problem. If the problem still
exists, we'll have to figure out the details.

Ciao

Dominik ^_^ ^_^
--
Dominik Vogt
Tom Horsley
2014-05-21 21:06:34 UTC
Permalink
On Wed, 21 May 2014 21:12:43 +0100
Post by Dominik Vogt
# annoying behaviour through EWMHActivateWindowFunc?
destroyfunc EWMHActivateWindowFunc
addtofunc EWMHActivateWindowFunc
+ I echo Ignoring EWMHActivateWindowFunc $[w.id] $[w.name]
Bingo! That's the one that works for google-chrome.
Thanks for the pointer.

I also can't imagine any reason I'd want any window to
act this way, so I think eradicating that function
for everything will probably be exactly what I want.
Dominik Vogt
2014-05-22 17:27:20 UTC
Permalink
Post by Tom Horsley
On Wed, 21 May 2014 21:12:43 +0100
Post by Dominik Vogt
# annoying behaviour through EWMHActivateWindowFunc?
destroyfunc EWMHActivateWindowFunc
addtofunc EWMHActivateWindowFunc
+ I echo Ignoring EWMHActivateWindowFunc $[w.id] $[w.name]
Bingo! That's the one that works for google-chrome.
Thanks for the pointer.
I also can't imagine any reason I'd want any window to
act this way, so I think eradicating that function
for everything will probably be exactly what I want.
Maybe we should add this "recipe" to the FAQ. :-p

Ciao

Dominik ^_^ ^_^
--
Dominik Vogt
E Frank Ball III
2014-05-21 20:38:13 UTC
Permalink
Post by Tom Horsley
The latest version of google-chrome has the annoying habit of
forcing itself to the top of the stack when I right click on
a link (thus utterly obscuring the window I was planning on
pasting the copied link into :-).
I have read through the descriptions of all the style settings
that seem to have anything to do with stacking order and I
can't find anything that looks as if it can tell fvwm to
ignore stacking order changes from windows.
Have I finally found something I can't do with fvwm, or
am I just missing (or misreading) the docs?
I have "WindowStyle StaysOnTop" in my window menus so I can select it
and make the xterms stay on top of Chrome.


E Frank Ball ***@frankb.us
Loading...