Re: FVWM: Focus when scrolling viewport

From: Michael Han <mikehan_at_best.com>
Date: Tue, 14 Mar 2000 09:04:37 -0800

Previously from Christian R Molls
>I am using the following bindings to scroll the viewport:
>
># Alt-<CursorKey> scroll viewport
>Key Left A M Scroll -100 0
>Key Right A M Scroll 100 0
>Key Up A M Scroll 0 -100
>Key Down A M Scroll 0 100
>
>Let's assume that I have to desks, each with a xterm. xterm1 on desk
>one has the focus. Now I do Meta-Right and change to desk 2. I can now
>see xterm2, but it does not have focus, as the focus is still on
>desk1, xterm1.
>
>How can I achieve that the focus does not stay with xterm1 but changes
>to xterm2? Hope I made myself clear.

What you can do is create a function and call the function from your
keybindings:

AddToFunc ScrollWithFocus I Scroll $0 $1
+ I Prev (CurrentDesk) Focus

Key Left A M ScrollWithFocus -100 0
...

I just made up the function, so it may not be exactly right, but I
think you get the idea.
-- 
mikehan_at_best.com                         http://www.best.com/~mikehan/
coffee achiever                              San Francisco, California
"If you lend me some money, it'll be my treat."
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Tue Mar 14 2000 - 11:05:32 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:50 BST