diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in index 2c5bda89..f283e490 100644 --- a/lib/naughty.lua.in +++ b/lib/naughty.lua.in @@ -479,7 +479,7 @@ if capi.dbus then end return "u", "0" elseif data.member == "CloseNotification" then - local obj = getById(arg1) + local obj = getById(appname) if obj then destroy(obj) end