diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in index 50d204089..3c4315b4c 100644 --- a/lib/naughty.lua.in +++ b/lib/naughty.lua.in @@ -298,7 +298,7 @@ function notify(args) -- replace notification if needed if args.replaces_id then - obj = getById(args.replaces_id) + local obj = getById(args.replaces_id) if obj then -- destroy this and ... destroy(obj)