xcb_ungrab_key(3)
π xcb_ungrab_key β release a key combination π
okay so bestie, welcome to the xcb_ungrab_key(3) page, part of the XCB Requests crew π this one is short and sweet and honestly kind of a palate cleanser after the chaos that is grabbing. let's get into it π
β¨ SYNOPSIS β¨
first things first, you gotta pull in the header:
#include <xcb/xproto.h>
π¦ Request function
xcb_void_cookie_t xcb_ungrab_key(xcb_connection_t *conn,
xcb_keycode_t key, xcb_window_t grab_window, uint16_t modifiers);
that's it, that's the whole vibe. one function, four args, zero drama πΈ
π REQUEST ARGUMENTS π
connβ the XCB connection to X11. your lil lifeline to the server, the group chat you're posting in πkeyβ the keycode of the specified key combination. lowkey important detail: if you use the special valueXCB_GRAB_ANY, you're releasing all possible key codes at once. like, every single one. icon behavior honestly πgrab_windowβ the window on which the grabbed key combination will be released. this is the spot where the un-grabbing happens πͺβ¨modifiersβ the modifiers of the specified key combination. and here's the tea: using the special valueXCB_MOD_MASK_ANYmeans you're releasing the key combination with every possible modifier combination. Ctrl? Shift? Alt? all of them, bestie. the whole squad π
π DESCRIPTION π
so basically: xcb_ungrab_key releases the key combination on grab_window if you grabbed it using xcb_grab_key before. that's the whole thing. you grabbed it, now you're letting it go. it's giving closure π¦
π RETURN VALUE π
it returns an xcb_void_cookie_t. no cap. and because it's void, any errors (if there are any) have to be handled in the event loop β you don't get them handed to you directly, you gotta go looking π
if you want to handle errors directly with xcb_request_check instead, use xcb_ungrab_key_checked. same energy, just more upfront about its problems π see xcb-requests(3) for the details.
π ERRORS π
xcb_value_error_tβ TODO: reasons? yeah bestie, the docs themselves said "idk" on this one π we're all just vibingxcb_window_error_tβ the specifiedgrab_windowdoes not exist. it's not there. it ghosted you π»
π SEE ALSO π
π AUTHOR π
generated from xproto.xml. got corrections or improvements? contact xcb@lists.freedesktop.org β they're literally taking submissions, go off π«Ά
and that's the page, bestie β¨ this was xcb_ungrab_key(3) from X Version 11, brought to you by libxcb 1.17.0. thanks for reading, now go release that key combo, you absolute main character πππ¦
π¦ 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