diff --git a/lib/awful/placement.lua b/lib/awful/placement.lua index 1f2dad329..793923165 100644 --- a/lib/awful/placement.lua +++ b/lib/awful/placement.lua @@ -450,6 +450,9 @@ local function attach(d, position_f, args) if not args.attach then return end + -- Avoid a connection loop + args = setmetatable({attach=false}, {__index=args}) + d = d or capi.client.focus if not d then return end