Dominik Vogt <fvwm_at_fvwm.org> writes:
> On Wed, Dec 17, 2003 at 09:00:32PM +0200, Ilpo Nyyssönen wrote:
[...]
>> 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.
To left that mostly does it, but to the right it doesn't. That always
puts the window in the given direction to the left of the visible
area, but when going to right, it should put it to the right. It
should always scroll as little as possible but still make the window
visible.
Is it possible to scroll only when the given window is not totally in
the visible area?
Also the WarpPointer doesn't seem to do anything.
I have fvwm 2.5.8 currently.
--
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 Thu Dec 18 2003 - 10:49:22 GMT