diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in index 50d20408..3c4315b4 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)