naughty: check workarea in get_offset, not at load

Signed-off-by: koniu <gkusnierz@gmail.com>
This commit is contained in:
koniu 2008-11-15 09:24:50 +00:00
parent 9d2b21d25d
commit c86b41235f
1 changed files with 1 additions and 2 deletions

View File

@ -91,8 +91,6 @@ notifications = {
bottom_right = {}, 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 --- Evaluate desired position of the notification by index - internal
-- @param idx Index of the notification -- @param idx Index of the notification
@ -101,6 +99,7 @@ local ss = capi.screen[config.screen].geometry
-- @return Absolute position in {x, y} dictionary -- @return Absolute position in {x, y} dictionary
local function get_offset(idx, position, lines) local function get_offset(idx, position, lines)
local ws = capi.screen[config.screen].workarea
local v = {} local v = {}
-- calculate x -- calculate x