Opened 12 months ago
Way to obtain cursor coordinate even preedit is empty
|Reported by:||hanya||Owned by:||stippi|
|Has a Patch:||no||Platform:||All|
Recent input method provides way to show current state of the input method. Such as hiragana, katakana or direct input mode as icon or text shown near the current cursor position.
But there is no way to obtain current cursor position in the display coordinate if the preedit is empty. We have way to obtain input location while input through an input method. This is one of B_INPUT_METHOD_EVENT with be:opcode == B_INPUT_METHOD_LOCATION_REQUEST. If there is no character in the preedit of the input, any location information is contained in the return message.
We should not change the behaviour of the event above. Alternativelly, how about to provide way to obtain cursor location as one of properties?