From 33e88ea8d4a0d01cf2766097d67099c7c4dc5c98 Mon Sep 17 00:00:00 2001 From: Gregor Best Date: Mon, 28 Mar 2011 11:21:17 +0200 Subject: [PATCH] awful.mouse: fix interclient border snapping Signed-off-by: Gregor Best Signed-off-by: Uli Schlachter --- lib/awful/mouse/init.lua.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/awful/mouse/init.lua.in b/lib/awful/mouse/init.lua.in index 95924884..e25cb0a4 100644 --- a/lib/awful/mouse/init.lua.in +++ b/lib/awful/mouse/init.lua.in @@ -138,6 +138,9 @@ function client.snap(c, snap, x, y, fixed_x, fixed_y) c:struts(struts) end + geom.x = geom.x - (2 * c.border_width) + geom.y = geom.y - (2 * c.border_width) + for k, snapper in ipairs(aclient.visible(c.screen)) do if snapper ~= c then geom = snap_outside(geom, snapper:geometry(), snap) @@ -150,6 +153,8 @@ function client.snap(c, snap, x, y, fixed_x, fixed_y) geom.width = geom.width - (2 * c.border_width) geom.height = geom.height - (2 * c.border_width) + geom.x = geom.x + (2 * c.border_width) + geom.y = geom.y + (2 * c.border_width) return geom end