From 0414a579c280a78887bf74b754389216311511ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=96=9F=20=E2=96=96=E2=96=9F=20=E2=96=96?= Date: Mon, 6 Apr 2015 01:01:44 +0200 Subject: [PATCH] Expose dbus signal sender Closes https://github.com/awesomeWM/awesome/pull/198. --- dbus.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dbus.c b/dbus.c index afeaf914d..acff48010 100644 --- a/dbus.c +++ b/dbus.c @@ -391,6 +391,12 @@ a_dbus_process_request(DBusConnection *dbus_connection, DBusMessage *msg) lua_pushstring(L, s); lua_setfield(L, -2, "member"); + s = dbus_message_get_sender(msg); + if(s != NULL) { + lua_pushstring(L, s); + lua_setfield(L, -2, "sender"); + } + if(dbus_connection == dbus_connection_system) lua_pushliteral(L, "system"); else