Re: FVWM: Focusing and scrolling screen to window in direction

From: Dominik Vogt <fvwm_at_fvwm.org>
Date: Thu, 18 Dec 2003 09:53:41 +0100

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 majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Thu Dec 18 2003 - 02:55:52 GMT

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