placement: Fix a parent geometry bug in next_to.

The function returns the geometry of the parent object. As it was used,
it was passed the parent object directly. The means the parent geometry
of the parent object was used instead of the geometry of the parent
object. This worked "fine" as long as the mouse was in the same screen,
but it was just hiding the bug.
This commit is contained in:
Emmanuel Lepage Vallee 2020-02-09 03:23:17 -05:00
parent 0703fa2197
commit 8190ece3b2

View file

@ -1533,7 +1533,7 @@ function placement.next_to(d, args)
geo.width, geo.height = dgeo.width, dgeo.height
fit = fit_in_bounding(pos.region.screen, geo, args)
fit = fit_in_bounding(pos.region, geo, args)
if fit then break end
end