From 8190ece3b29f1f0d12cf168d55e50bebc51549b8 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sun, 9 Feb 2020 03:23:17 -0500 Subject: [PATCH] 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. --- lib/awful/placement.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/awful/placement.lua b/lib/awful/placement.lua index fc79d5b9..c67de4e9 100644 --- a/lib/awful/placement.lua +++ b/lib/awful/placement.lua @@ -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