xcb_input_set_device_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_set_device_focus ✨

okay bestie, gather round, because we're diving into xcb_input_set_device_focus from the XCB Requests corner of the X universe πŸ’– it lives in libxcb 1.17.0, it's part of X Version 11, and no cap, it does exactly one little job and then dips.


🌸 NAME 🌸

xcb_input_set_device_focus β€” (and that's it, the original page literally leaves the description blank, so we're not making anything up here, periodt πŸ’…)


πŸ¦‹ SYNOPSIS πŸ¦‹

First, you gotta bring in the goods:

#include <xcb/xinput.h>

πŸ’œ Request function

xcb_void_cookie_t xcb_input_set_device_focus(xcb_connection_t *conn,
       xcb_window_t focus, xcb_timestamp_t time, uint8_t revert_to,
       uint8_t device_id);

πŸŽ€ REQUEST ARGUMENTS πŸŽ€

  • conn β€” the XCB connection to X11. your lil lifeline to the server, she's the main character here 🫢
  • focus β€” TODO: NOT YET DOCUMENTED. (yes fr, the docs really said "we'll get to it" and then didn't 😭)
  • time β€” TODO: NOT YET DOCUMENTED. (same energy, bestie)
  • revert_to β€” TODO: NOT YET DOCUMENTED. (still waiting on that one πŸ™ˆ)
  • device_id β€” TODO: NOT YET DOCUMENTED. (the whole squad is undocumented, iconic honestly)

🌈 DESCRIPTION 🌈

okay so… there is no description text on this page. like, zero. the section exists, it's just empty. the vibe is mysterious, the lore is missing, and we're not about to invent it β€” no technical claims that aren't in the original, that's the rule πŸ’―


⭐ RETURN VALUE ⭐

She hands you back an xcb_void_cookie_t. That's the whole return. If any errors show up (and theoretically, if any were to show up), you'd have to handle them over in the event loop, not right here.

But if you'd rather grab errors directly, there's a move for that: use xcb_input_set_device_focus_checked together with xcb_request_check. Check xcb-requests(3) for the deets, iykyk πŸ‘‘


πŸ’€ ERRORS πŸ’€

This request does never generate any errors. Not a single one. Zero. Clean run, no drama, she simply doesn't do that ✨

🧚 SEE ALSO 🧚

(nothing listed here on the original page β€” the section is just vibes and blank space πŸŽ€)


πŸ‘‘ AUTHOR πŸ‘‘

Generated from xinput.xml. If you wanna send corrections and improvements, hit up xcb@lists.freedesktop.org πŸ’Œ


and that's the whole page, bestie! πŸ’– this was xcb_input_set_device_focus(3) from X Version 11, shipped with libxcb 1.17.0, dated xcb_input_set_device_focus(3) β€” slay, ate, no crumbs, periodt πŸ’…πŸ¦‹πŸŒΈ