xcb_input_xi_set_focus(3)
β¨ xcb_input_xi_set_focus π
okay bestie, so this is a page from the libxcb manual β it's the xcb_input_xi_set_focus request, living in the XCB Requests section. if you're out here doing X11 input stuff with XCB, this one's for you. π¦
πΈ SYNOPSIS πΈ
first things first, you gotta pull in the header:
#include <xcb/xinput.h>
π Request function
here's the whole vibe, signature and all:
xcb_void_cookie_t xcb_input_xi_set_focus(xcb_connection_t *conn,
xcb_window_t window, xcb_timestamp_t time,
xcb_input_device_id_t deviceid);
π REQUEST ARGUMENTS π
so here's who's who in that lil parameter list:
connβ the XCB connection to X11. your link to the mothership, basically. π₯windowβ TODO: NOT YET DOCUMENTED. yeah bestie, the docs justβ¦ aren't there yet. i don't make the rules. πtimeβ TODO: NOT YET DOCUMENTED. same energy. mysterious. iconic of them honestly. πdeviceidβ TODO: NOT YET DOCUMENTED. also undocumented. it's giving "figure it out yourself" ngl. π
β¨ DESCRIPTION β¨
literally nothing here. the original page leaves this section completely empty β no description, no lore, no tea. we move. π«Ά
π RETURN VALUE π
it hands you back an xcb_void_cookie_t. that's the whole thing. π
and here's the important part, no cap: any errors? they have to be handled over in the event loop. that's where they show up.
but wait β if you'd rather deal with errors directly and not in the event loop, use xcb_request_check instead. and for that you want xcb_input_xi_set_focus_checked. head over to xcb-requests(3) for the full breakdown, bestie. β
π ERRORS π
okay this is the good news section:
this request does never generate any errors. periodt. π
π₯ SEE ALSO π₯
nothing listed here in the original β the section's just sitting there empty. she's mysterious like that. π
π§ AUTHOR π§
generated from xinput.xml. if you've got corrections or improvements, hmu at xcb@lists.freedesktop.org β they'd love to hear from you. π
and that's a wrap, bestie!! this page is from X Version 11, libxcb 1.17.0 β go forth and set that focus. slay. πβ¨π
π¦ where this page comes from
- alpine 3.22: libxcb-doc 1.17.0-r0 Β· MIT
- alpine 3.23: libxcb-doc 1.17.0-r1 Β· MIT
- alpine 3.24: libxcb-doc 1.17.0-r2 Β· MIT
- arch rolling: libxcb 1.17.0-1 Β· X11
- centos-stream 10: libxcb-devel 1.17.0-3.el10 Β· X11
- debian trixie: libxcb-doc 1.17.0-2
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- nixpkgs unstable: libxcb 1.17.0
- opensuse-leap 16.0: libxcb-devel-doc 1.17.0-160000.2.2 Β· MIT
- ubuntu questing: libxcb-doc 1.17.0-2build1
- ubuntu resolute: libxcb-doc 1.17.0-2ubuntu1
- ubuntu stonking: libxcb-doc 1.17.0-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms