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

From: Ilpo Nyyssönen <iny+dev_at_iki.fi>
Date: Sun, 21 Dec 2003 11:30:24 +0200

Dominik Vogt <fvwm_at_fvwm.org> writes:

> destroyfunc focus_minimal_scroll
> addtofunc focus_minimal_scroll
> + I PipeRead "minimal_scroll.sh $[w.x] $[w.y] $[w.width] $[w.height] 0 0 $[vp.width] $[vp.height]"
> + I Focus nowarp
> + I WarpToWindow 0 0
>
> key Left a CM direction w focus_minimal_scroll
> key Right a CM direction e focus_minimal_scroll
>
> PipeRead uses the attached shell script to do its calculations.
> Put it in your $PATH and make it executable.

I improved the script a bit (and actually changed it to python) and
got it to work, thank you.

> I got the command name wrong. It's "WarpToWindow".

That messes up the scrolling by moving the viewport. I took that and
the Focus command away and just calculated a CursorMove command from
the script.

-- 
Ilpo Nyyssönen # biny # /* :-) */
--
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 Sun Dec 21 2003 - 05:19:18 GMT

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