diff options
| author | Huang Peng <shawn.p.huang@gmail.com> | 2008-10-01 12:43:50 +0800 |
|---|---|---|
| committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-10-01 12:43:50 +0800 |
| commit | f33d3aac4c3d6dfea5775238128278443ce2d678 (patch) | |
| tree | 8d76b611fb6dbf0428d621ed7833b66571ca4912 /client | |
| parent | 21bacd40b5f6c45e137b6b3e7d6b00d8fbe96634 (diff) | |
| download | ibus-f33d3aac4c3d6dfea5775238128278443ce2d678.tar.gz ibus-f33d3aac4c3d6dfea5775238128278443ce2d678.tar.xz ibus-f33d3aac4c3d6dfea5775238128278443ce2d678.zip | |
Support input style.
Diffstat (limited to 'client')
| -rw-r--r-- | client/x11/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/x11/main.c b/client/x11/main.c index 7d4fd83..960791b 100644 --- a/client/x11/main.c +++ b/client/x11/main.c @@ -289,7 +289,12 @@ xim_create_ic (XIMS xims, IMChangeICStruct *call_data) g_hash_table_insert (_ibus_ic_table, x11ic->ibus_ic, (gpointer)x11ic); - ibus_im_client_set_capabilities (_client, x11ic->ibus_ic, IBUS_CAP_FOCUS | IBUS_CAP_PREEDIT); + if (x11ic->input_style & XIMPreeditCallbacks) { + ibus_im_client_set_capabilities (_client, x11ic->ibus_ic, IBUS_CAP_FOCUS | IBUS_CAP_PREEDIT); + } + else { + ibus_im_client_set_capabilities (_client, x11ic->ibus_ic, IBUS_CAP_FOCUS); + } g_hash_table_insert (_x11_ic_table, (gpointer)x11ic->icid, (gpointer)x11ic); x11ic->conn->clients = g_list_append (x11ic->conn->clients, (gpointer)x11ic); |
