blob: 6cf858659049081920c8f3eae366bae0de097425 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
diff --git a/src/ibus-fbterm.c b/src/ibus-fbterm.c
index ffb7401..b4ddb64 100644
--- a/src/ibus-fbterm.c
+++ b/src/ibus-fbterm.c
@@ -119,13 +119,17 @@ static void im_active()
debug("im active\n");
modifier_state = 0;
init_keycode_state();
+#if ! IBUS_CHECK_VERSION(1, 4, 99)
ibus_input_context_enable(ibus_ctx);
+#endif
}
static void im_deactive()
{
debug("im deactive\n");
+#if ! IBUS_CHECK_VERSION(1, 4, 99)
ibus_input_context_disable(ibus_ctx);
+#endif
auxiliary_text_win.w = 0;
lookup_table_win.w = 0;
|