make naughty catch appname from DBUS messages

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Abdó Roig-Maranges 2012-09-14 15:20:26 +02:00 committed by Uli Schlachter
parent 98185eb123
commit 5701c473d4
1 changed files with 3 additions and 0 deletions

View File

@ -517,6 +517,9 @@ if capi.dbus then
return return
end end
end end
if appname ~= "" then
args.appname = appname
end
for i, obj in pairs(naughty.config.mapping) do for i, obj in pairs(naughty.config.mapping) do
local filter, preset, s = obj[1], obj[2], 0 local filter, preset, s = obj[1], obj[2], 0
if (not filter.urgency or filter.urgency == hints.urgency) and if (not filter.urgency or filter.urgency == hints.urgency) and