Hello list,
I got "attempt to call global destroy" from two locations in
naughty.lua, which should be fixed with this patch. The first one can be
triggered by spamming notifications, the second one appeared to me on
evolution's mail notification, which is supposed to be closed when
opening the mail.
From 47b5bec7c1e8234028a16d894e564194891a6003 Mon Sep 17 00:00:00 2001
From: Felix Bier <[email protected]>
Date: Fri, 22 Jun 2012 19:46:41 +0200
Subject: [PATCH] Do not attempt to call global destroy


Signed-off-by: Felix Bier <[email protected]>
---
 lib/naughty.lua.in | 4 ++--
 1 Datei geändert, 2 Zeilen hinzugefügt(+), 2 Zeilen entfernt(-)

diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in
index 9e0fcee..27949e2 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
-- 
1.7.11

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to