diff --git a/doc/fvwm3/fvwm3.adoc b/doc/fvwm3/fvwm3.adoc index 86d7a97d0..5594fdabc 100644 --- a/doc/fvwm3/fvwm3.adoc +++ b/doc/fvwm3/fvwm3.adoc @@ -6193,15 +6193,15 @@ during an interactive move the window or icon comes within _proximity_ pixels of another the window or icon, it is moved to make the borders adjoin. The default of 0 means that no snapping happens. Calling this command without arguments turns off snap attraction and restores the -default behavior. Please refer also to the *SnapGrid* command. +default behavior. Please refer also to the _SnapGrid_ option. + -The second argument determined is optional and may be set to one of +The second argument optional and may be set to one of the five following values: With _All_ both icons and windows snap to other windows and other icons. _SameType_ lets windows snap only to windows, and icons snap only to icons. With _Windows_ windows snap only to other windows. Similarly with _Icons_ icons snap only to other icons. With _None_ no snapping takes place. This option can be useful -in conjunction with the following argument if you only want to snap +in conjunction with the thirs argument if you only want to snap against the screen edges. The default behavior is _All_. + The third and last optional argument may be set to one of the four @@ -6223,17 +6223,17 @@ location (top left corner) is coincident with the nearest grid point. The default _x-grid-size_ and _y-grid-size_ setting are both 1, which is effectively no grid all. -An interactive move with both *SnapGrid* and _SnapAttraction_ results +An interactive move with both _SnapGrid_ and _SnapAttraction_ results in the window being moved to be adjacent to the nearest window border (if within snap proximity) or grid position. The window moves the -shortest distance possible to satisfy both *SnapGrid* and +shortest distance possible to satisfy both _SnapGrid_ and _SnapAttraction_. Note that the x and y coordinates are not coupled. For example, a window may snap to another window on the x axis while snapping to a grid point on the y axis. Using this style without arguments reinstates the default settings. -The styles _EdgeMoveDelay_ and _EdgeResizeDelay_ tells how hard it -should be to change the desktop viewport by moving or resizing a +The styles _EdgeMoveDelay_ and _EdgeResizeDelay_ define how hard it +is to change the desktop viewport by moving or resizing a window over the edge of the screen. The parameter tells how many milliseconds the pointer must spend on the screen edge before fvwm moves the viewport. The command *EdgeScroll* determines how far the diff --git a/fvwm/fvwm.h b/fvwm/fvwm.h index 020de3bf7..bdc04ee82 100644 --- a/fvwm/fvwm.h +++ b/fvwm/fvwm.h @@ -687,7 +687,6 @@ typedef struct window_style bool max_window_width_is_c; bool max_window_height_is_c; int shade_anim_steps; -#if 1 /*!!!*/ snap_attraction_t snap_attraction; /* snap grid size */ int snap_grid_x; @@ -696,7 +695,6 @@ typedef struct window_style int edge_delay_ms_resize; int edge_resistance_move; int edge_resistance_xinerama_move; -#endif icon_boxes *icon_boxes; float norm_placement_penalty; pl_penalty_struct pl_penalty; @@ -919,7 +917,6 @@ typedef struct FvwmWindow int max_window_height; int shade_anim_steps; unsigned char grabbed_buttons; -#if 1 /*!!!*/ snap_attraction_t snap_attraction; /* snap grid size */ int snap_grid_x; @@ -928,7 +925,6 @@ typedef struct FvwmWindow int edge_delay_ms_resize; int edge_resistance_move; int edge_resistance_xinerama_move; -#endif #define FM_NO_INPUT 0 #define FM_PASSIVE 1