From c86b41235f4dc72be71ad43dab3eaadda9ac473b Mon Sep 17 00:00:00 2001 From: koniu Date: Sat, 15 Nov 2008 09:24:50 +0000 Subject: [PATCH] naughty: check workarea in get_offset, not at load Signed-off-by: koniu --- lib/naughty.lua.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in index 59dffd134..f1fdac035 100644 --- a/lib/naughty.lua.in +++ b/lib/naughty.lua.in @@ -91,8 +91,6 @@ notifications = { bottom_right = {}, } -local ws = capi.screen[config.screen].workarea -local ss = capi.screen[config.screen].geometry --- Evaluate desired position of the notification by index - internal -- @param idx Index of the notification @@ -101,6 +99,7 @@ local ss = capi.screen[config.screen].geometry -- @return Absolute position in {x, y} dictionary local function get_offset(idx, position, lines) + local ws = capi.screen[config.screen].workarea local v = {} -- calculate x