xcb_test_fake_input(3)

πŸ“¦
version 1.17.0 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’… 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. πŸŒˆπŸ’œ