Status: Assigned
Owner: [email protected]
Labels: Type-Defect Priority-Medium

New issue 1446 by [email protected]: IBUS_CAP_FOCUS is useless under global engine mode?
http://code.google.com/p/ibus/issues/detail?id=1446

I'm trying to get ibus-fep (ibus client for text console) working under global engine mode. As ibus-fep is an ncurses application, there is no way to handle focus changes.

The problem is, when I switch focus to other window, the engine of the input context which ibus-fep maintains is set to "dummy" and not usable anymore.

I'm attaching a patch to src/tests/ibus-inputcontext.c, which does:

1. Set global engine
2. Create an input context A with IBUS_CAP_FOCUS
3. Focus in A and focus out A
4. Create an input context B with IBUS_CAP_FOCUS
5. Focus in B and focus out B
6. Remove IBUS_CAP_FOCUS from B's capability list
7. Focus in A

Expected:

B's engine should not be changed.

Actual:

B's engine will be unset (i.e. "dummy")

Note:
The original bug report:
https://github.com/ueno/ibus-fep/issues/5

Attachments:
        ibus-inputcontext.c.diff  2.8 KB

--
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

回复