From 35286d5eccd0391be66a834569fa167fb2d24a81 Mon Sep 17 00:00:00 2001 From: Radu Andries Date: Thu, 9 Dec 2010 15:35:32 +0100 Subject: [PATCH] Improve naughty's dbus interface Evil spec from galago project. image_data should be read too as in http://www.galago-project.org/specs/notification/0.9/x344.html Signed-off-by: Uli Schlachter --- lib/naughty.lua.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in index 3c4315b4..f9658cbb 100644 --- a/lib/naughty.lua.in +++ b/lib/naughty.lua.in @@ -493,7 +493,8 @@ if capi.dbus then args.preset.callback(data, appname, replaces_id, icon, title, text, actions, hints, expire)) then if icon ~= "" then args.icon = icon - elseif hints.icon_data then + elseif hints.icon_data or hints.image_data then + if hints.icon_data == nil then hints.icon_data = hints.image_data end -- icon_data is an array: -- 1 -> width, 2 -> height, 3 -> rowstride, 4 -> has alpha -- 5 -> bits per sample, 6 -> channels, 7 -> data