XSetICFocus(), XUnsetICFocus() - set and unset input context focus
void XSetICFocus (XIC ic)
void XUnsetICFocus (XIC ic)
The XSetICFocus(3) function allows a client to notify an input method that the focus window attached to the specified input context has received keyboard focus. The input method should take action to provide appropriate feedback. Complete feedback specification is a matter of user interface policy.
The XUnsetICFocus(3) function allows a client to notify an input method that the specified input context has lost the keyboard focus and that no more input is expected on the focus window attached to that input context. The input method should take action to provide appropriate feedback. Complete feedback specification is a matter of user interface policy.
XOpenIM()
Xlib