Stop key-repeat when the server receives a new D-Bus event.

Key-repeat timer should be cleared when the server receives a new D-Bus.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=857977
This commit is contained in:
Daiki Ueno
2012-10-01 11:46:44 +09:00
parent c71167d893
commit e212262f29

View File

@ -750,6 +750,11 @@ handle_method_call (GDBusConnection *connection,
EekboardContextService *context = user_data;
EekboardContextServiceClass *klass = EEKBOARD_CONTEXT_SERVICE_GET_CLASS(context);
if (context->priv->repeat_timeout_id) {
g_source_remove (context->priv->repeat_timeout_id);
context->priv->repeat_timeout_id = 0;
}
if (g_strcmp0 (method_name, "AddKeyboard") == 0) {
const gchar *keyboard_type;
static guint keyboard_id = 0;