mirror of
https://github.com/labwc/labwc.git
synced 2026-02-18 22:05:32 -05:00
Add resistance when dragging tiled windows
Adds a config option <snapping><dragResistance> with default value 20. This prevents tiled/maximized windows from being unintentionally untiled.
This commit is contained in:
parent
750d37b16c
commit
c202d77c2d
8 changed files with 82 additions and 4 deletions
|
|
@ -94,6 +94,7 @@ do_late_positioning(struct view *view)
|
|||
if (server->input_mode == LAB_INPUT_STATE_MOVE
|
||||
&& view == server->grabbed_view) {
|
||||
/* Keep view underneath cursor */
|
||||
/* TODO: resistance is not considered */
|
||||
interactive_anchor_to_cursor(view, &view->pending);
|
||||
/* Update grab offsets */
|
||||
server->grab_x = server->seat.cursor->x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue