mouse/snap: Do not use the deprecated geometry access

This commit is contained in:
Emmanuel Lepage Vallee 2016-09-11 02:06:26 -04:00
parent 8c2d85523f
commit e89a72acd5
1 changed files with 2 additions and 2 deletions

View File

@ -203,8 +203,8 @@ function module.snap(c, snap, x, y, fixed_x, fixed_y)
geom.x = x or geom.x geom.x = x or geom.x
geom.y = y or geom.y geom.y = y or geom.y
geom, edge = snap_inside(geom, capi.screen[c.screen].geometry, snap) geom, edge = snap_inside(geom, c.screen.geometry, snap)
geom = snap_inside(geom, capi.screen[c.screen].workarea, snap) geom = snap_inside(geom, c.screen.workarea, snap)
-- Allow certain windows to snap to the edge of the workarea. -- Allow certain windows to snap to the edge of the workarea.
-- Only allow docking to workarea for consistency/to avoid problems. -- Only allow docking to workarea for consistency/to avoid problems.