Index: bus/inputcontext.c |
diff --git a/bus/inputcontext.c b/bus/inputcontext.c |
index 936dec16bb8be09060b92a0fcde835c62780dfbc..f63c3aec5a2af9aa8ee429e2fb8606eca44d3f3c 100644 |
--- a/bus/inputcontext.c |
+++ b/bus/inputcontext.c |
@@ -1163,6 +1163,11 @@ bus_input_context_focus_in (BusInputContext *context) |
context->has_focus = TRUE; |
+ // To make sure that we won't use an old value left before we losing focus |
+ // last time. |
+ context->prev_keyval = IBUS_VoidSymbol; |
+ context->prev_modifiers = 0; |
+ |
if (context->engine == NULL && context->enabled) { |
g_signal_emit (context, context_signals[REQUEST_ENGINE], 0, NULL); |
} |