aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2012-03-27 11:37:31 -0400
committerRyan Lortie <desrt@desrt.ca>2012-03-27 11:37:31 -0400
commitb5ec723e66d2073f0f66abe139f3e7c14776bd63 (patch)
tree8d3b9c7ce111e6b6714bd3586c0a7c6b1261c651
parent4dd014ca94bd0a47cece8fcc1cf978431adc2888 (diff)
downloadlibdbusmenu-b5ec723e66d2073f0f66abe139f3e7c14776bd63.tar.gz
libdbusmenu-b5ec723e66d2073f0f66abe139f3e7c14776bd63.tar.bz2
libdbusmenu-b5ec723e66d2073f0f66abe139f3e7c14776bd63.zip
server: don't send replies for events that don't request replies
-rw-r--r--libdbusmenu-glib/server.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c
index 524e777..a8e9214 100644
--- a/libdbusmenu-glib/server.c
+++ b/libdbusmenu-glib/server.c
@@ -1626,7 +1626,9 @@ bus_event (DbusmenuServer * server, GVariant * params, GDBusMethodInvocation * i
g_timeout_add(0, event_local_handler, event_data);
- g_dbus_method_invocation_return_value(invocation, NULL);
+ if (~g_dbus_message_get_flags (g_dbus_method_invocation_get_message (invocation)) & G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED) {
+ g_dbus_method_invocation_return_value(invocation, NULL);
+ }
}
return;