Rename <snapping><dragResistance> to <resistance><unSnapThreshold>

As we already have <resistance><{screen,window}EdgeStrength>,
<resistance> will be a better place for this setting.
This commit is contained in:
tokyo4j 2024-08-08 09:19:52 +09:00 committed by Hiroaki Yamamoto
parent dc387f7765
commit 670cc0f511
7 changed files with 16 additions and 16 deletions

View file

@ -504,7 +504,7 @@ void seat_output_layout_changed(struct seat *seat);
* geometry->{width,height} are provided by the caller.
* geometry->{x,y} are computed by this function.
*
* @note When drag-resistance is used, cursor_x/y should be the original
* @note When <unSnapThreshold> is non-zero, cursor_x/y should be the original
* cursor position when the button was pressed.
*/
void interactive_anchor_to_cursor(struct view *view, struct wlr_box *geometry,
@ -514,7 +514,7 @@ void interactive_anchor_to_cursor(struct view *view, struct wlr_box *geometry,
* interactive_move_tiled_view_to() - Un-tile the tiled/maximized view at the
* start of an interactive move or when an interactive move is pending.
* Returns true if the distance of cursor motion exceeds the value of
* <snapping><dragResistance> and the view is un-tiled.
* <resistance><unSnapThreshold> and the view is un-tiled.
*/
bool interactive_move_tiled_view_to(struct server *server, struct view *view,
struct wlr_box *geometry);