I just upgraded from fvwm-2.5.7 to fvwm-2.5.26.  With 2.5.7, I had a
nice function which allowed me to move icons with SnapGrid, while
moving windows without it:

    SnapGrid 0 0

    DestroyFunc MoveIcon
    AddToFunc MoveIcon
    + I SnapGrid $[ICONWIDTH] $[ICONHEIGHT]
    + I Move
    + I SnapGrid 0 0

    Mouse 1 I A MoveIcon

This allowed me to keep my icons nice and tidy on my desktop
($ICONWIDTH and $ICONHEIGHT are both 75), while still alowing me to
place windows wherever I need them.

Upon upgrading, I see that SnapGrid is now a style, so I changed this
to:

    Style * SnapGrid 0 0

    DestroyFunc MoveIcon
    AddToFunc MoveIcon
    + I Style * SnapGrid $[ICONWIDTH] $[ICONHEIGHT]
    + I Move
    + I Style * SnapGrid 0 0

But this no longer works -- the "SnapGrid 0 0" behavior is always in
effect.  It appears the Style commands don't take effect until after
the Move.

Is there some way to force the Style changes before the Move?

Thanks,

Steve


Reply via email to