From 36b639801b5cbf1ecc0a6457a411b96d6303ec23 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Thu, 26 Aug 2010 21:15:01 +0200 Subject: [PATCH] awful.placement: Fix a mis-calculation Signed-off-by: Uli Schlachter --- lib/awful/placement.lua.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/awful/placement.lua.in b/lib/awful/placement.lua.in index 26babb6c..d6a27b97 100644 --- a/lib/awful/placement.lua.in +++ b/lib/awful/placement.lua.in @@ -109,13 +109,13 @@ function no_offscreen(c) local screen_geometry = capi.screen[c.screen].workarea 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 + geometry.x = screen_geometry.x + screen_geometry.width - geometry.width elseif 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 + geometry.y = screen_geometry.y + screen_geometry.height - geometry.height elseif geometry.y < screen_geometry.y then geometry.y = screen_geometry.y end