Comment #4 on issue 1100 by takao.fujiwara1: ibus-anthy ignores the first
keypress after XSetICFocus
http://code.google.com/p/ibus/issues/detail?id=1100
Somehow I missed this when testing previously: this behaviour only shows
up when XUnsetICFocus() is called while there is an active pre-edit
string.
I called XUnsetICFocus() with preedit on but I cannot reproduce your
problem.
My test case:
if (XFilterEvent (&event, 0) == True) {
if (event.type != KeyPress) {
continue;
}
count = XwcLookupString (ic, (XKeyPressedEvent *)
&event,
(wchar_t *) string, len, &keysym,
&status);
if (keysym == XK_Home &&
(status == XLookupKeySym ||
status == XLookupBoth)) {
printf ("Unset IC focus\n");
XUnsetICFocus (ic);
sleep (5);
printf ("Set IC focus\n");
XSetICFocus (ic);
}
The next key event is correctly handled with ibus-anthy.
--
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en