Re: Hamm fvwm2 -- new Focus behavior
Hi Jameson!
> I also found the fvwm changes troublesome since I had to spend a
> few hours (or was that days) redoing post.hook. I also feel
> something like <ctrl><tab> should raise and focus on successive
> windows. I found the default fvwm configuration anemic.
[snip]
> HERE IS SOME OF MY CODE FROM post.hook:
[snip]
> # I make <control><tab> cycle and popup windows.
> # I believe this was the default before, but something has changed in fvwm2.
> # CirculateUp is obsolete.
> Key Tab A C Function next-and-raise
> AddToFunc next-and-raise I Next [CurrentPage !iconic] Focus
> + I Current Raise
> + I Current WarpToWindow 5p 5p
>
> Key Tab A SC Function previous-and-raise
> AddToFunc previous-and-raise I Prev [CurrentPage !iconic] Focus
> + I Current Raise
> + I Current WarpToWindow 5p 5p
[snip]
That mostly does it, but I would rather not WarpToWindow -- I want the
cursor to stay put. But if I leave WarpToWindow out, then focus
returns to the window under the cursor.
This is not the case with when just Focus is bound to the key (such as
in /etc/X11/fvwm2/system.fvwm2rc) -- either with the good old behavior
where Focus also raised and with the new behavior where it doesn't.
It appears that this "refocus under mouse" behavior is brought on by
multi-line function definitions using "+".
Aha! I just discovered that if I add the Focus and Raise commands on
separate AddToFunc lines without the "+", it works as I wanted. Also,
it seems that when the "+" is used, then the function takes longer to
execute. I don't understand why this is, do you?
I am now happy with this tail of my ~/.fvwm2/post.hook:
# FVWM2 Focus command no longer raises the window automatically.
# Here are some functions to compensate for that.
DestroyFunc next-and-raise
AddToFunc next-and-raise I Next [CurrentDesk !iconic] Focus
AddToFunc next-and-raise I Current Raise
DestroyFunc previous-and-raise
AddToFunc previous-and-raise I Prev [CurrentDesk !iconic] Focus
AddToFunc previous-and-raise I Current Raise
Key Tab A M Function next-and-raise
Key Tab A MS Function previous-and-raise
Thanks Jameson,
Kirk Hilliard
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: