Merge pull request #125 from blueyed/fix-placement-no-offscreen-xy-at-0
awful.placement.no_offscreen: no negative x/y
This commit is contained in:
commit
9702fc63c6
|
@ -113,13 +113,15 @@ function placement.no_offscreen(c)
|
|||
|
||||
if geometry.x + geometry.width + 2*border > screen_geometry.x + screen_geometry.width then
|
||||
geometry.x = screen_geometry.x + screen_geometry.width - geometry.width - 2*border
|
||||
elseif geometry.x < screen_geometry.x then
|
||||
end
|
||||
if geometry.x < screen_geometry.x then
|
||||
geometry.x = screen_geometry.x
|
||||
end
|
||||
|
||||
if geometry.y + geometry.height + border > screen_geometry.y + screen_geometry.height then
|
||||
geometry.y = screen_geometry.y + screen_geometry.height - geometry.height - 2*border
|
||||
elseif geometry.y < screen_geometry.y then
|
||||
end
|
||||
if geometry.y < screen_geometry.y then
|
||||
geometry.y = screen_geometry.y
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue