xcb_dri3_get_...ted_modifiers(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_dri3_get_...ted_modifiers β€” XCB Requests ✨

okay bestie, sit down, hydrate, and let's talk about a lil XCB request from the XCB Requests manual, page xcb_dri3_get_...ted_modifiers(3) πŸ’– (yes the title is doing the most with that ellipsis, she's mysterious like that, we move).


πŸŽ€ NAME πŸŽ€

xcb_dri3_get_supported_modifiers β€” and then… nothing. That's it. The description is empty. She said "name's all you get" πŸ’… iconic honestly.


🌈 SYNOPSIS 🌈

First things first, you gotta pull her in:

#include <xcb/dri3.h>

✨ Request function ✨

xcb_dri3_get_supported_modifiers_cookie_t
       xcb_dri3_get_supported_modifiers(xcb_connection_t *conn,
       uint32_t window, uint8_t depth, uint8_t bpp);

πŸ’œ Reply datastructure πŸ’œ

typedef struct xcb_dri3_get_supported_modifiers_reply_t {
    uint8_t  response_type;
    uint8_t  pad0;
    uint16_t sequence;
    uint32_t length;
    uint32_t num_window_modifiers;
    uint32_t num_screen_modifiers;
    uint8_t  pad1[16];
} xcb_dri3_get_supported_modifiers_reply_t;

πŸ¦‹ Reply function πŸ¦‹

xcb_dri3_get_supported_modifiers_reply_t
       *xcb_dri3_get_supported_modifiers_reply(xcb_connection_t *conn,
       xcb_dri3_get_supported_modifiers_cookie_t cookie,
       xcb_generic_error_t **e);

🌸 Reply accessors 🌸

the little helpers that get the goods out, no cap:

uint64_t *xcb_dri3_get_supported_modifiers_window_modifiers(const
       xcb_dri3_get_supported_modifiers_request_t *reply);

int xcb_dri3_get_supported_modifiers_window_modifiers_length(const
       xcb_dri3_get_supported_modifiers_reply_t *reply);

xcb_generic_iterator_t
       xcb_dri3_get_supported_modifiers_window_modifiers_end(const
       xcb_dri3_get_supported_modifiers_reply_t *reply);

uint64_t *xcb_dri3_get_supported_modifiers_screen_modifiers(const
       xcb_dri3_get_supported_modifiers_request_t *reply);

int xcb_dri3_get_supported_modifiers_screen_modifiers_length(const
       xcb_dri3_get_supported_modifiers_reply_t *reply);

xcb_generic_iterator_t
       xcb_dri3_get_supported_modifiers_screen_modifiers_end(const
       xcb_dri3_get_supported_modifiers_reply_t *reply);

πŸ’… REQUEST ARGUMENTS πŸ’…

  • conn β€” the XCB connection to X11. your whole link to the server, your main character connection fr.
  • window β€” TODO: NOT YET DOCUMENTED. πŸ™ˆ the docs simply did not show up to class.
  • depth β€” TODO: NOT YET DOCUMENTED. 😭 same energy.
  • bpp β€” TODO: NOT YET DOCUMENTED. πŸ’€ three for three, the documentation is ghosting us.

πŸ‘‘ REPLY FIELDS πŸ‘‘

  • response_type β€” the type of this reply, in this case XCB_DRI3_GET_SUPPORTED_MODIFIERS. this field is also present in the xcb_generic_reply_t and can be used to tell replies apart from each other. so like, it's her name tag at the party πŸŽ€
  • sequence β€” the sequence number of the last request processed by the X11 server. the "when did this happen" receipt, lowkey essential.
  • length β€” the length of the reply, in words (a word is 4 bytes). quick maths, no calculator needed bestie.
  • num_window_modifiers β€” TODO: NOT YET DOCUMENTED. 🫢
  • num_screen_modifiers β€” TODO: NOT YET DOCUMENTED. 🌸

⭐ DESCRIPTION ⭐

nothing. literally nothing. the description section is empty. she's giving minimalist, she's giving "the vibes speak for themselves" πŸ’œ


πŸ”₯ RETURN VALUE πŸ”₯

Returns an xcb_dri3_get_supported_modifiers_cookie_t. πŸͺ yes, a cookie. Errors have to be handled when calling the reply function xcb_dri3_get_supported_modifiers_reply.

If you want to handle errors in the event loop instead, use xcb_dri3_get_supported_modifiers_unchecked. See xcb-requests(3) for details. pick your fighter, bestie ✨


🌈 ERRORS 🌈

This request does never generate any errors. πŸŽ‰ literally flawless, not one single problem, she's perfect your honor.

🧚 SEE ALSO 🧚

nothing listed here. empty. a whole lot of silence. πŸ™ˆ


πŸ’– AUTHOR πŸ’–

Generated from dri3.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. ✍️ if you spot something sus, tell the maintainers, they're nice.


okay that's the whole page, you ate that, go forth and query your modifiers with confidence πŸ¦‹

X Version 11 Β· libxcb 1.17.0 Β· xcb_dri3_get_...ted_modifiers(3) β€” and that's the footer, babes, that's a wrap πŸ’…βœ¨ no date on this one, she keeps it timeless πŸ’œ