xcb_test_fake_input(3)
π xcb_test_fake_input β the XCB Requests girlies know
okay bestie, so this one lives in section 3 of the manual (that's the "library functions" section, iykyk), and it's called xcb_test_fake_input. That's the whole NAME section right there, no cap β the original literally leaves the description blank. We move.
β¨ SYNOPSIS β¨
First things first, you gotta pull in the header:
#include <xcb/xtest.h>
π Request function
Here's the whole signature, character for character, don't @ me:
xcb_void_cookie_t xcb_test_fake_input(xcb_connection_t *conn,
uint8_t type, uint8_t detail, uint32_t time, xcb_window_t root,
int16_t rootX, int16_t rootY, uint8_t deviceid);
π¦ REQUEST ARGUMENTS π¦
connβ the XCB connection to X11. your lil link to the server, the main character of every XCB request fr.typeβ TODO: NOT YET DOCUMENTED. yeah. the docs just. aren't there. iconic of them honestly πdetailβ TODO: NOT YET DOCUMENTED.timeβ TODO: NOT YET DOCUMENTED.rootβ TODO: NOT YET DOCUMENTED.rootXβ TODO: NOT YET DOCUMENTED.rootYβ TODO: NOT YET DOCUMENTED.deviceidβ TODO: NOT YET DOCUMENTED.
not me reading a manual page that just says TODO seven times in a row π the mystery is lowkey the vibe though.
πΈ DESCRIPTION πΈ
soβ¦ there isn't one. the DESCRIPTION section is empty. nothing. void. the original page just moves straight on to the next heading and honestly? slay, I guess. no notes, because there are no notes. π«Ά
β RETURN VALUE β
This one hands you back an xcb_void_cookie_t. and here's the thing β if any errors happen, you have to handle them over in the event loop, okay? that's the deal.
But if you'd rather handle errors directly with xcb_request_check instead, then use xcb_test_fake_input_checked. peek xcb-requests(3) for all the deets on how that works. π
π ERRORS π
plot twist: this request does never generate any errors. never ever. zero. none. that's just what it says. so if you were bracing for chaos β breathe, bestie, there is none. β¨
π SEE ALSO π
β¦it's empty. there are no cross-references listed. that's it, that's the section. moving on. π
π§ AUTHOR π§
Generated from xtest.xml. If you've got corrections or improvements, hit up xcb@lists.freedesktop.org. they're literally asking, so don't be shy.
and that's the whole thing, bestie π this came out of X Version 11, libxcb 1.17.0, and yeah the page is called xcb_test_fake_input(3) β now go fake some input, you absolute legend. ππ
π¦ 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