The ChangeLog for fvmw2 version 2.0.46 includes:
37. Focus command no longer raises - use an interpreted
focus-and-raise function if that's desired
My first attempt at such a function was this:
# The Focus command no longer raises the window automatically.
# Here is a function that emulates the old Focus behavior.
DestroyFunc focus-and-raise
AddToFunc focus-and-raise
+ "I" Focus
+ "I" Raise
# And here are the new bindings.
Key Tab A M Next [CurrentDesk] focus-and-raise
Key Tab A MS Prev [CurrentDesk] focus-and-raise
This function did focus and raise the next window, but then focus
immediately returned to the window under the mouse. (This would
probably not have been the case with ClickToFocus -- I use
SloppyFocus.)
I then discovered that by defining the function like this:
# The Focus command no longer raises the window automatically.
# Here is a function that emulates the old Focus behavior.
DestroyFunc focus-and-raise
AddToFunc focus-and-raise "I" Focus
+ "I" Raise
it worked as I expected -- the focus remained with the newly raised
window and did not return to the window under the mouse. Also, this
second form results in a much faster function -- one which can keep up
with my keyboard repeat rate if I hold down Alt-Tab. The first
function is considerably slower, with a visible delay between the time
that the next window is raised and it shifts color to indicate that it
has focus. (This is easier to see when the mouse is moved to the root
window so that focus stays with the newly raised window.)
Is this a bug or a feature? I initially chose this first style
because it is used in the Debian system.fvwm2rc. I now see that the
fvwm2 man page only shows the second style for AddToFunc, but it does
not warn against the first style, and that style is used for
AddToDecor.
Kirk Hilliard
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Thu Jan 29 1998 - 11:03:43 GMT