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

@ -124,6 +124,7 @@ struct rcxml {
/* resistance */
int screen_edge_strength;
int window_edge_strength;
int unsnap_threshold;
/* window snapping */
int snap_edge_range;
@ -132,7 +133,6 @@ struct rcxml {
int snap_overlay_delay_outer;
bool snap_top_maximize;
enum tiling_events_mode snap_tiling_events_mode;
int snap_drag_resistance;
enum resize_indicator_mode resize_indicator;
bool resize_draw_contents;

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);