Flush connection to make sure IBus.Exit has been sent before process exiting.
This commit is contained in:
Родитель
748b6b1f6c
Коммит
ef5485bd1e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче