On Wed, Dec 17, 2003 at 09:00:32PM +0200, Ilpo Nyyss�nen wrote:
> 
> First note that I have
> 
> EdgeScroll 3 3
> Style * MouseFocus
> 
> and my windows are mostly side by side at the top of my virtual
> desktop. This way I am able to get several window combinations visible
> without moving the windows. I rarely create, move or close any
> windows. For example I have a terminal that has this XEmacs on left
> side of it and a Mozilla on right side of it. Now I am able to get
> both the XEmacs and the terminal visible at the same time and then
> just by moving the mouse to right, I can get the terminal and Mozilla
> visible at the same time. And I don't need to move or iconify or
> deiconify the windows. This is nice and works with fvwm, thank you.
> 
> But now I would like to have a keybinding that would focus the next
> window left AND scroll the screen so that it is just visible (and the
> same way to the right of course). It should not move the screen any
> more than necessary, so that the window where I just were is left
> visible.
> 
> Is this possible and how do I get it?

Sure

  destroyfunc focus_and_move_to_top_left
  addtofunc focus_and_move_to_top_left
  + I echo scrolling
  + I scroll $[w.x]p 0
  + I WarpPointer 0 0
  + I focus nowarp

  key Left a CM direction w focus_and_move_to_top_left
  key Right a CM direction e focus_and_move_to_top_left

You may want to change some of the details of this function.

Ciao

Dominik ^_^  ^_^
--
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 [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to