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 SnapG
Thomas Adam wrote:
> > 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
> >
I've bound ctrl-mouse1 to Resize a window:
Mouse 1 W C ResizeOrMove
DestroyFunc ResizeOrMove
AddToFunc ResizeOrMove
+ I Raise
+ M Resize Direction Automatic WarpToBorder
+ D Move
This does what I want, but now normal mouse1 clicks (no modifiers) on certain
widgets in You
I have a custom function to move icons:
DestroyFunc MoveIcon
AddToFunc MoveIcon
# Set icons to snap to grid exlusively
+ I WindowStyle SnapAttraction 0
+ I WindowStyle SnapGrid $[ICONWIDTH] $[ICONHEIGHT]
+ I UpdateStyles
+ I Move
# Reset snap settings for normal w