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 🌸


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