diff --git a/lib/awful/placement.lua b/lib/awful/placement.lua index d516195d3..3cc2ceb01 100644 --- a/lib/awful/placement.lua +++ b/lib/awful/placement.lua @@ -851,7 +851,7 @@ function placement.no_offscreen(c, args) c = c or capi.client.focus args = add_context(args, "no_offscreen") - local geometry = area_common(c) + local geometry = geometry_common(c, args) local screen = get_screen(args.screen or c.screen or a_screen.getbycoord(geometry.x, geometry.y)) local screen_geometry = screen.workarea diff --git a/tests/examples/awful/placement/no_offscreen.output.txt b/tests/examples/awful/placement/no_offscreen.output.txt index 2bd013d5c..3c3ea6514 100644 --- a/tests/examples/awful/placement/no_offscreen.output.txt +++ b/tests/examples/awful/placement/no_offscreen.output.txt @@ -1,2 +1,2 @@ Before: x=-30, y=-30, width=100, height=100 -After: x=50, y=50, width=20, height=20 +After: x=50, y=50, width=100, height=100