From e78a07574b5201017370e67d449b64337b2b09ff Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sat, 7 May 2016 00:18:39 -0400 Subject: [PATCH] placement: Do not forward the args in get_parent_geometry The args are for 'd', not the parent. --- lib/awful/placement.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/awful/placement.lua b/lib/awful/placement.lua index b7b55b7b..5033f682 100644 --- a/lib/awful/placement.lua +++ b/lib/awful/placement.lua @@ -387,12 +387,18 @@ end -- @tparam table args the method arguments -- @treturn table A table with *x*, *y*, *width* and *height*. local function get_parent_geometry(obj, args) + -- Didable override_geometry, context and other to avoid mutating the state + -- or using the wrong geo. + if args.bounding_rect then return args.bounding_rect elseif args.parent then - return geometry_common(args.parent, args) + return geometry_common(args.parent, {}) elseif obj.screen then - return geometry_common(obj.screen, args) + return geometry_common(obj.screen, { + honor_padding = args.honor_padding, + honor_workarea = args.honor_workarea + }) else return geometry_common(capi.screen[capi.mouse.screen], args) end