On Tue, 19 Feb 2008, Dominik Vogt wrote:

On Tue, Feb 19, 2008 at 11:36:45AM +0100, Viktor Griph wrote:
On Tue, 19 Feb 2008, for.register for.register wrote:
2.  How can the two actions ( Move and Resize)  work at the same time?
I am afraid I do not understand why there are two "+I"

They work one after each other. (That was what thought you meant by
movesize.) So the window will move while button 3 is held down. Once
released the window will start to resize in the bottom right corner.
However there appears to be a  bug with the way fvwm treats this Resize
directly after a move: It interprets the move of the pointer during the
move as initial instructions for the resize.

That's because when the button is pressed, the ButtonPress event
is stored as the "trigger event" of the function.  All actions
inside a functions refer to the trigger event as if they were
completely independent actions.  It is clearly confusing, but I
don't know what you actually expected this function to do.

I excpected it to not use the referenece position of the second command, but start out where the mouse pointer of the first command ended.

The desired result can almost be achived by using
DestroyFunc
AddToFunc MoveResize
+ I Move
+ I WarpToWindow 100 100
+ I Resize

(The only difference will be the final position of the pointer)

/Viktor

Reply via email to