From ef5485bd1e53fb2fbce13827928f7eecb2ea75ef Mon Sep 17 00:00:00 2001 From: Peng Huang Date: Fri, 13 Feb 2009 14:10:57 +0800 Subject: Flush connection to make sure IBus.Exit has been sent before process exiting. --- src/ibusbus.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/ibusbus.c b/src/ibusbus.c index 7b6af04..a567359 100644 --- a/src/ibusbus.c +++ b/src/ibusbus.c @@ -639,6 +639,9 @@ ibus_bus_exit (IBusBus *bus, { g_assert (IBUS_IS_BUS (bus)); + IBusBusPrivate *priv; + priv = IBUS_BUS_GET_PRIVATE (bus); + gboolean result; result = ibus_bus_call (bus, IBUS_SERVICE_IBUS, @@ -648,6 +651,8 @@ ibus_bus_exit (IBusBus *bus, G_TYPE_BOOLEAN, &restart, G_TYPE_INVALID, G_TYPE_INVALID); + ibus_connection_flush (priv->connection); + return result; } -- cgit