xcb_get_pointer_control(3)
π xcb_get_pointer_control β bestie edition π
okay so we're doing xcb_get_pointer_control(3) today, and it lives in the XCB Requests section of the manual. it's literally the "hey X11 server, spill the tea about the pointer" request. pointer acceleration, threshold, all that. let's go π¦
β¨ NAME β¨
xcb_get_pointer_control β and bestie, the original manpage leaves this description completely blank. not a single word. it's giving mystery, it's giving enigmatic main character π΅οΈβοΈπ
so we're rolling with it.
πΈ SYNOPSIS πΈ
first things first, you gotta bring the header in, no cap:
#include <xcb/xproto.h>
π Request function
xcb_get_pointer_control_cookie_t
xcb_get_pointer_control(xcb_connection_t *conn,
ok so yes, the original really does just cut off there mid-sentence π i am NOT finishing it for them, that would be inventing facts and we don't do that here. iconic behaviour tbh.
π Reply datastructure
typedef struct xcb_get_pointer_control_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint16_t acceleration_numerator;
uint16_t acceleration_denominator;
uint16_t threshold;
uint8_t pad1[18];
} xcb_get_pointer_control_reply_t;
π Reply function
xcb_get_pointer_control_reply_t
*xcb_get_pointer_control_reply(xcb_connection_t *conn,
xcb_get_pointer_control_cookie_t cookie,
xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11. that's it. that's the whole list. she's low-maintenance π
π REPLY FIELDS π
response_typeβ the type of this reply, which in this case isXCB_GET_POINTER_CONTROL. this field is also chillin' 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 actually processed. the receipts, basically π§Ύlengthβ how long the reply is, measured in words. and bestie, a word here is 4 bytes. remember that, it's on the test β¨acceleration_numeratorβTODO: NOT YET DOCUMENTED.yeah. the original literally says that. not me being lazy, that's just what it says πacceleration_denominatorβTODO: NOT YET DOCUMENTED.same vibe, same blankness πthresholdβTODO: NOT YET DOCUMENTED.three for three, we love a mystery π
π¦ DESCRIPTION π¦
so... the original manpage has nothing under DESCRIPTION. like, zero. empty. a whole section and not one character of prose.
i'm not gonna make stuff up, because making up technical claims is not the vibe β so we're both just gonna sit here and appreciate the silence together π«Άβ¨
β RETURN VALUE β
she returns an xcb_get_pointer_control_cookie_t. and listen β errors have to be handled when you call the reply function xcb_get_pointer_control_reply.
if you'd rather handle your errors in the event loop instead, use xcb_get_pointer_control_unchecked. see xcb-requests(3) for the deets π
π₯ ERRORS π₯
this request does never generate any errors. not one. she is unproblematic, she is drama-free, she is the moment ππΈ
π« SEE ALSO π«
bestie. there is nothing here. the original lists no references. an empty SEE ALSO. we respect it, we move on ποΈ
π AUTHOR π
generated from xproto.xml. contact xcb@lists.freedesktop.org for corrections and improvements π§
okay so that's the whole page!! this one shipped as X Version 11, libxcb 1.17.0, and the footer tag is xcb_get_pointer_control(3) πβ¨ thanks for reading bestie, go forth and query that pointer control, ily, periodt π
π¦π
π¦ 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