awful.placement: Only set position
None of this code wants to resize clients. Thus, it makes sense to only set the position of a client and ignore its size. Also, this sneaks in a fix for no_offscreen which is documented to return the client's new position, but didn't actually do so. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
4db998fdf2
commit
3d3570a998
|
@ -128,7 +128,7 @@ function placement.no_offscreen(c, screen)
|
||||||
geometry.y = screen_geometry.y
|
geometry.y = screen_geometry.y
|
||||||
end
|
end
|
||||||
|
|
||||||
c:geometry(geometry)
|
return c:geometry({ x = geometry.x, y = geometry.y })
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Place the client where there's place available with minimum overlap.
|
--- Place the client where there's place available with minimum overlap.
|
||||||
|
@ -180,7 +180,7 @@ function placement.no_overlap(c)
|
||||||
new.width = geometry.width
|
new.width = geometry.width
|
||||||
new.height = geometry.height
|
new.height = geometry.height
|
||||||
|
|
||||||
return c:geometry(new)
|
return c:geometry({ x = new.x, y = new.y })
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Place the client under the mouse.
|
--- Place the client under the mouse.
|
||||||
|
|
Loading…
Reference in New Issue