mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -04:00
src/snap-constraints.c: ignore view origin during constraint updates
This commit is contained in:
parent
476fd5f25e
commit
d2175b3a8b
2 changed files with 7 additions and 3 deletions
|
|
@ -185,7 +185,7 @@ resistance_resize_apply(struct view *view, struct wlr_box *new_geom)
|
||||||
|
|
||||||
/* If any "best" edges were encountered during this move, snap motion */
|
/* If any "best" edges were encountered during this move, snap motion */
|
||||||
edges_adjust_resize_geom(view, next_edges,
|
edges_adjust_resize_geom(view, next_edges,
|
||||||
view->server->resize_edges, new_geom, /* use_pending */ false);
|
resize_edges, new_geom, /* use_pending */ false);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Record effective geometry after snapping in case the client opts to
|
* Record effective geometry after snapping in case the client opts to
|
||||||
|
|
|
||||||
|
|
@ -152,8 +152,12 @@ snap_constraints_update(struct view *view)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Only update constraints when view geometry matches expectation */
|
/* Only update constraints when pending view dimensions match expectation */
|
||||||
if (!wlr_box_equal(&view->pending, &last_snap_hit.geom)) {
|
if (view->pending.width != last_snap_hit.geom.width) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (view->pending.height != last_snap_hit.geom.height) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue