xcb_input_get_device_focus(3)
π xcb_input_get_device_focus π
okay so bestie, welcome to xcb_input_get_device_focus(3) β a lil XCB request page from the XCB Requests crew. she's short, she's sweet, and honestly? half of her is just vibes and TODO: NOT YET DOCUMENTED. we love a mysterious queen. β¨
πΈ NAME πΈ
xcb_input_get_device_focus β
no like literally, that's it. the description line is empty. she said "my name is enough" and honestly? periodt. π
β¨ SYNOPSIS β¨
first things first, you gotta pull in the header:
#include <xcb/xinput.h
(okay it's #include <xcb/xinput.h>, i'm just being silly β the real one is right here π)
#include <xcb/xinput.h>
π Request function
xcb_input_get_device_focus_cookie_t
xcb_input_get_device_focus(xcb_connection_t *conn,
uint8_t device_id);
π¦ Reply datastructure
typedef struct xcb_input_get_device_focus_reply_t {
uint8_t response_type;
uint8_t xi_reply_type;
uint16_t sequence;
uint32_t length;
xcb_window_t focus;
xcb_timestamp_t time;
uint8_t revert_to;
uint8_t pad0[15];
} xcb_input_get_device_focus_reply_t;
π Reply function
xcb_input_get_device_focus_reply_t
*xcb_input_get_device_focus_reply(xcb_connection_t *conn,
xcb_input_get_device_focus_cookie_t cookie,
xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11. your lil hotline to the server, bestie. πdevice_idβTODO: NOT YET DOCUMENTED.yeah. she's keeping secrets. no cap, the manpage literally just says that. π
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_INPUT_GET_DEVICE_FOCUS. this field also lives in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other. very "which one of y'all is this" energy. π₯sequenceβ the sequence number of the last request the X11 server processed. her little timeline, her lore.lengthβ the length of the reply, in words. and a word here is 4 bytes, iykyk. βxi_reply_typeβTODO: NOT YET DOCUMENTED.focusβTODO: NOT YET DOCUMENTED.timeβTODO: NOT YET DOCUMENTED.revert_toβTODO: NOT YET DOCUMENTED.
not four fields in a row being undocumented π the mystery is the aesthetic, i guess. we stan a cryptic icon.
π DESCRIPTION π
...nothing here. the section exists, it's just empty. main character silence. π€«β¨
π« RETURN VALUE π«
she hands you back an xcb_input_get_device_focus_cookie_t. πͺ cute, right? but here's the thing β errors have to be handled when you call the reply function, xcb_input_get_device_focus_reply.
and if you'd rather handle errors in the event loop instead? use xcb_input_get_device_focus_unchecked. see xcb-requests(3) for the deets. π«Ά
π ERRORS π
this request does never generate any errors. zero. none. clean sheet, no drama, no red flags. iconic behaviour fr fr. π
π§ SEE ALSO π§
...it's empty, bestie. nothing linked here. she's solo. independent. thriving. π¦
π AUTHOR π
Generated from xinput.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. π«Ά
and that's the whole page, bestie!! π stay slaying, go get that device focus, and remember β X Version 11, libxcb 1.17.0, that's the vibe check. bye queen πΈβ¨π
π¦ 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