Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ta/dv misc #634

Merged
merged 3 commits into from
Nov 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions doc/fvwm3/fvwm3.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 0 additions & 4 deletions fvwm/fvwm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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
Expand Down