From aa7d342645cd28c6191eea681abf0351d99d30de Mon Sep 17 00:00:00 2001 From: Felix Bier Date: Fri, 22 Jun 2012 19:46:41 +0200 Subject: [PATCH] Do not attempt to call global destroy Signed-off-by: Felix Bier Signed-off-by: Uli Schlachter --- lib/naughty.lua.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in index 9e0fceeb1..27949e2d9 100644 --- a/lib/naughty.lua.in +++ b/lib/naughty.lua.in @@ -193,7 +193,7 @@ local function get_offset(screen, position, idx, width, height) -- if positioned outside workarea, destroy oldest popup and recalculate if v.y + height > ws.y + ws.height or v.y < ws.y then idx = idx - 1 - destroy(notifications[screen][position][1]) + naughty.destroy(notifications[screen][position][1]) v = get_offset(screen, position, idx, width, height) end if not v.idx then v.idx = idx end @@ -568,7 +568,7 @@ if capi.dbus then elseif data.member == "CloseNotification" then local obj = getById(appname) if obj then - destroy(obj) + naughty.destroy(obj) end elseif data.member == "GetServerInfo" or data.member == "GetServerInformation" then -- name of notification app, name of vender, version