From 531381fa6d38ad4335a9d69964e143b1378b3326 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Wed, 23 Dec 2009 10:51:30 +0100 Subject: [PATCH] Implement the GetCapabilities call in naughty This call is required by the freedesktop specification. Signed-off-by: Uli Schlachter Signed-off-by: Julien Danjou --- lib/naughty.lua.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in index f283e490a..b9b0453f7 100644 --- a/lib/naughty.lua.in +++ b/lib/naughty.lua.in @@ -486,6 +486,10 @@ if capi.dbus then elseif data.member == "GetServerInfo" or data.member == "GetServerInformation" then -- name of notification app, name of vender, version return "s", "naughty", "s", "awesome", "s", capi.awesome.version:match("%d.%d"), "s", "1.0" + elseif data.member == "GetCapabilities" then + -- We actually do display the body of the message, we support , + -- and in the body and we handle static (non-animated) icons. + return "as", { "s", "body", "s", "body-markup", "s", "icon-static" } end end) @@ -502,6 +506,9 @@ if capi.dbus then + + +