mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05: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
|
|
@ -152,8 +152,12 @@ snap_constraints_update(struct view *view)
|
|||
return;
|
||||
}
|
||||
|
||||
/* Only update constraints when view geometry matches expectation */
|
||||
if (!wlr_box_equal(&view->pending, &last_snap_hit.geom)) {
|
||||
/* Only update constraints when pending view dimensions match expectation */
|
||||
if (view->pending.width != last_snap_hit.geom.width) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (view->pending.height != last_snap_hit.geom.height) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue