From e89a72acd5d56228a8084399e332abeabefda577 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sun, 11 Sep 2016 02:06:26 -0400 Subject: [PATCH] mouse/snap: Do not use the deprecated geometry access --- lib/awful/mouse/snap.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/awful/mouse/snap.lua b/lib/awful/mouse/snap.lua index 872e95c47..b307ccaea 100644 --- a/lib/awful/mouse/snap.lua +++ b/lib/awful/mouse/snap.lua @@ -203,8 +203,8 @@ function module.snap(c, snap, x, y, fixed_x, fixed_y) geom.x = x or geom.x geom.y = y or geom.y - geom, edge = snap_inside(geom, capi.screen[c.screen].geometry, snap) - geom = snap_inside(geom, capi.screen[c.screen].workarea, snap) + geom, edge = snap_inside(geom, c.screen.geometry, snap) + geom = snap_inside(geom, c.screen.workarea, snap) -- Allow certain windows to snap to the edge of the workarea. -- Only allow docking to workarea for consistency/to avoid problems.