aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib/server.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-03-28 08:27:11 -0500
committerTed Gould <ted@gould.cx>2012-03-28 08:27:11 -0500
commitbb56c3bea31c39f87dae1977ac589cc8313d7f1a (patch)
treec7826f759b7dd139528a390341d288c58c0f67c0 /libdbusmenu-glib/server.c
parent9c05ef15c71d0ce52d0defc72ed62f014cefc2a3 (diff)
parentb5ec723e66d2073f0f66abe139f3e7c14776bd63 (diff)
downloadlibdbusmenu-bb56c3bea31c39f87dae1977ac589cc8313d7f1a.tar.gz
libdbusmenu-bb56c3bea31c39f87dae1977ac589cc8313d7f1a.tar.bz2
libdbusmenu-bb56c3bea31c39f87dae1977ac589cc8313d7f1a.zip
Don't sent event replies that aren't requested
Diffstat (limited to 'libdbusmenu-glib/server.c')
-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;