Hello everybody, this is my first post in this newsgroup
I am relatively new to fvwm, and was just playing around a bit with
EdgeCommand the command that makes the visible area of the screen move
to the direction the mouse hits the edge.
I wonder if it is possible to make the desktop scroll more smoothly and
strategy-game-like, that is, the desktop starts scrolling (e.g. upwards)
when the cursor hits the top of the screen, and continues scrolling
until the cursor is moved away from the screen.
Please note that the main problem is that when the cursor hits an edge
of the screen, the visible area scrolls once and the cursor is jumping
back a few pixels, so continuous scrolling is only possible with a
continuous mouse movement.
i tried to manipulate FuncScrollMoveV (and H) but get not the desired
effect. i tried (successful) to keep the cursor at the edge after
scrolling, but its unfortunately necessary to move back and again
against the edge, to trigger EdgeScroll again. I also tried to simulate
this with calling CursorMove twice, hoping it would trigger EdgeCommand
again. but no luck..
here a snippet from my .fvwm2rc (reduced to vertical scrolling only)
#------------------
EdgeResistance 0 0
EdgeThickness 1
EdgeCommand north FuncScrollMoveV -2p 2p
EdgeCommand south FuncScrollMoveV 2p -2p
DestroyFunc FuncScrollMoveV
AddtoFunc FuncScrollMoveV
+ I Scroll 0 $0
+ I CursorMove 0 $1
+ I CursorMove 0 $0
#-------------------
the desired effect is trigger EdgeCommand -> scroll -> cursor away from
edge -> place curser again at the edge to trigger EdgeCommand again :/
But that could be problematically, too, looks like it could be an
endlessloop, if it was working at all.
i would be grateful for any answers
xig
ps: just if anybody knows, if the whole thing above works, how could the
begin and ending of the scrolling process be smoothed?