XSetICFocus(3)
β¨ NAME β¨
XSetICFocus, XUnsetICFocus β set and unset input context focus. That's the whole name section, bestie, and yes it's giving exactly what it says on the tin π
Okay so this is XSetICFocus(3) from the XLIB FUNCTIONS part of the manual, and we're about to make input context focus make sense. Buckle up, it's actually not that deep π¦
π SYNTAX π
The signatures are literally:
void XSetICFocus(XIC ic);
void XUnsetICFocus(XIC ic);
π ARGUMENTS π
icβ Specifies the input context. That's it. The input context in question, the main character of this whole function π«Ά
π¦ DESCRIPTION π¦
π XSetICFocus π
Okay so first up, XSetICFocus β this 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, so like, the actual feedback design is a whole policy thing, not something this call decides for you β¨
Calling XSetICFocus does not affect the focus window value. No cap β it literally leaves that value alone π
π XUnsetICFocus π
Then there's XUnsetICFocus, which is the "we're so done" counterpart: it 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 β same policy disclaimer, same energy π
Calling XUnsetICFocus does not affect the focus window value; the client may still receive events from the input method that are directed to the focus window. So even after unsetting, those IM events can still show up for the focus window, and the focus window value stays exactly where it was. Periodt π
πΈ SEE ALSO πΈ
XCreateIC(3)XOpenIM(3)XSetICValues(3)XmbResetIC(3)Xlib - C Language X Interface
That's the whole page, bestie β brought to you by X Version 11 and libX11 1.8.14, and this page is XSetICFocus(3). Love you, bye! πβ¨
π¦ where this page comes from
- alpine 3.24: libx11-doc 1.8.14-r0 Β· X11
- arch rolling: libx11 1.8.14-1 Β· MIT AND X11
- nixos 26.05: libx11 1.8.14
- nixpkgs unstable: libx11 1.8.14
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms