xcb_input_xi_set_focus(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_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. πŸ’–βœ¨πŸ‘‘