awful.mouse.snap: Fix invalid fallback
This commit is contained in:
parent
135ff4b0c8
commit
2ccc7c88d6
|
@ -97,7 +97,7 @@ end
|
||||||
-- @param fixed_y True if the client isn't allowed to move in the y direction.
|
-- @param fixed_y True if the client isn't allowed to move in the y direction.
|
||||||
function mouse.client.snap(c, snap, x, y, fixed_x, fixed_y)
|
function mouse.client.snap(c, snap, x, y, fixed_x, fixed_y)
|
||||||
snap = snap or 8
|
snap = snap or 8
|
||||||
c = c or mouse.client.focus
|
c = c or capi.client.focus
|
||||||
local cur_geom = c:geometry()
|
local cur_geom = c:geometry()
|
||||||
local geom = c:geometry()
|
local geom = c:geometry()
|
||||||
geom.width = geom.width + (2 * c.border_width)
|
geom.width = geom.width + (2 * c.border_width)
|
||||||
|
|
Loading…
Reference in New Issue