Help!

Fvwm2: EdgeScroll or EdgeCommand like in strategy games

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> X Window System RSS
Next:  Strange when running ssh -X  
Author Message
Omit Steinbeisser
External


Since: Aug 10, 2007
Posts: 1



PostPosted: Fri Aug 10, 2007 12:14 am    Post subject: Fvwm2: EdgeScroll or EdgeCommand like in strategy games
Archived from groups: comp>os>linux>x (more info?)

Hello everybody, this is my first post in this newsgroup Smile

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?
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> X Window System All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum