FS#917: Dont move clients with fixed positions

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Perry Hargrave 2011-07-01 08:19:46 -07:00 committed by Uli Schlachter
parent 9b2a988ab7
commit a23817718e
1 changed files with 4 additions and 4 deletions

View File

@ -147,15 +147,15 @@ function client.snap(c, snap, x, y, fixed_x, fixed_y)
end
end
-- It's easiest to undo changes afterwards if they're not allowed
if fixed_x then geom.x = cur_geom.x end
if fixed_y then geom.y = cur_geom.y end
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)
-- It's easiest to undo changes afterwards if they're not allowed
if fixed_x then geom.x = cur_geom.x end
if fixed_y then geom.y = cur_geom.y end
return geom
end