mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
dbus: field can be nil
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
da9664f812
commit
1dfa2c2a8d
1 changed files with 3 additions and 3 deletions
6
dbus.c
6
dbus.c
|
@ -289,15 +289,15 @@ a_dbus_process_request(DBusConnection *dbus_connection, DBusMessage *msg)
|
|||
|
||||
lua_setfield(globalconf.L, -2, "type");
|
||||
|
||||
lua_pushstring(globalconf.L, NONULL(interface));
|
||||
lua_pushstring(globalconf.L, interface);
|
||||
lua_setfield(globalconf.L, -2, "interface");
|
||||
|
||||
const char *s = dbus_message_get_path(msg);
|
||||
lua_pushstring(globalconf.L, NONULL(s));
|
||||
lua_pushstring(globalconf.L, s);
|
||||
lua_setfield(globalconf.L, -2, "path");
|
||||
|
||||
s = dbus_message_get_member(msg);
|
||||
lua_pushstring(globalconf.L, NONULL(s));
|
||||
lua_pushstring(globalconf.L, s);
|
||||
lua_setfield(globalconf.L, -2, "member");
|
||||
|
||||
if(dbus_connection == dbus_connection_system)
|
||||
|
|
Loading…
Reference in a new issue