From e1762128b7515b17f20459b3bc2320f95e0478bc Mon Sep 17 00:00:00 2001 From: koniu Date: Sun, 23 Nov 2008 16:35:45 +0000 Subject: [PATCH] naughty: bottom positioning has to count border twice Signed-off-by: koniu --- lib/naughty.lua.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in index 310ab4b44..021efec49 100644 --- a/lib/naughty.lua.in +++ b/lib/naughty.lua.in @@ -123,7 +123,7 @@ local function get_offset(screen, position, idx, width, height) if position:match("top") then v.y = ws.y + config.padding + existing else - v.y = ws.y + ws.height - (config.padding + config.border_width + height + existing) + v.y = ws.y + ws.height - (config.padding + config.border_width*2 + height + existing) end -- if positioned outside workarea, destroy oldest popup and recalculate