From 3d3570a998048a0343537361f5105ea22202178a Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 24 Oct 2015 08:43:22 +0200 Subject: [PATCH] awful.placement: Only set position None of this code wants to resize clients. Thus, it makes sense to only set the position of a client and ignore its size. Also, this sneaks in a fix for no_offscreen which is documented to return the client's new position, but didn't actually do so. Signed-off-by: Uli Schlachter --- lib/awful/placement.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/awful/placement.lua b/lib/awful/placement.lua index 8c903466e..3c4fc1cd1 100644 --- a/lib/awful/placement.lua +++ b/lib/awful/placement.lua @@ -128,7 +128,7 @@ function placement.no_offscreen(c, screen) geometry.y = screen_geometry.y end - c:geometry(geometry) + return c:geometry({ x = geometry.x, y = geometry.y }) end --- Place the client where there's place available with minimum overlap. @@ -180,7 +180,7 @@ function placement.no_overlap(c) new.width = geometry.width new.height = geometry.height - return c:geometry(new) + return c:geometry({ x = new.x, y = new.y }) end --- Place the client under the mouse.