Expose dbus signal sender
Closes https://github.com/awesomeWM/awesome/pull/198.
This commit is contained in:
parent
3fea174c5e
commit
0414a579c2
6
dbus.c
6
dbus.c
|
@ -391,6 +391,12 @@ a_dbus_process_request(DBusConnection *dbus_connection, DBusMessage *msg)
|
||||||
lua_pushstring(L, s);
|
lua_pushstring(L, s);
|
||||||
lua_setfield(L, -2, "member");
|
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)
|
if(dbus_connection == dbus_connection_system)
|
||||||
lua_pushliteral(L, "system");
|
lua_pushliteral(L, "system");
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue