Expose dbus signal sender

Closes https://github.com/awesomeWM/awesome/pull/198.
This commit is contained in:
▟ ▖▟ ▖ 2015-04-06 01:01:44 +02:00 committed by Daniel Hahler
parent 3fea174c5e
commit 0414a579c2
1 changed files with 6 additions and 0 deletions

6
dbus.c
View File

@ -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