naughty: check workarea in get_offset, not at load
Signed-off-by: koniu <gkusnierz@gmail.com>
This commit is contained in:
parent
9d2b21d25d
commit
c86b41235f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue