xcb_ungrab_button(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_ungrab_button

okay so bestie, welcome to the xcb_ungrab_button page from the XCB Requests girlies πŸ’– the title's literally just xcb_ungrab_button and ngl the NAME section is out here giving nothing β€” it's just the name and a lil dash, that's the whole vibe. no cap.


✨ SYNOPSIS ✨

first things first, you gotta bring in the header, periodt:

#include <xcb/xproto.h>

πŸŽ€ Request function

and here's the actual function, look at her go:

xcb_void_cookie_t xcb_ungrab_button(xcb_connection_t *conn,
       uint8_t button, xcb_window_t grab_window, uint16_t modifiers);

πŸ¦‹ REQUEST ARGUMENTS πŸ¦‹

  • conn β€” your XCB connection to X11, the main character of every single one of these pages fr fr πŸ”₯
  • button β€” bestie it's one of these, pick your fighter:
    • XCB_BUTTON_INDEX_ANY β€” any of the ones below (or honestly, none of them, she's flexible like that) ✨
    • XCB_BUTTON_INDEX_1 β€” the left mouse button, the classic, the icon πŸ’…
    • XCB_BUTTON_INDEX_2 β€” the right mouse button
    • XCB_BUTTON_INDEX_3 β€” the middle mouse button
    • XCB_BUTTON_INDEX_4 β€” scroll wheel. TODO: direction? β€” yeah she said what she said, even the docs are confused 😭
    • XCB_BUTTON_INDEX_5 β€” scroll wheel. TODO: direction? again, still no answer, still not our problem πŸ™ˆ
TODO: NOT YET DOCUMENTED. β€” the rest of the button options are out here with no lore, no backstory, just mystery 🫢
  • grab_window β€” TODO: NOT YET DOCUMENTED. we literally do not know her, she's a ghost πŸ‘»
  • modifiers β€” TODO: NOT YET DOCUMENTED. same energy, no info available, iconic of them honestly

🌸 DESCRIPTION 🌸

so um… there's literally nothing here. the DESCRIPTION section is empty. the vibes are immaculate but the content is not present. moving on bestie πŸ’€


⭐ RETURN VALUE ⭐

she returns an xcb_void_cookie_t, that's the whole thing. and if any errors show up, you have to handle them in the event loop, no shortcuts, that's just the rules πŸŽ€

and listen β€” if you'd rather handle errors directly with xcb_request_check instead, then you wanna use xcb_ungrab_button_checked. peek xcb-requests(3) for the deets, iykyk πŸ’œ


πŸ“ ERRORS πŸ“

okay so this request never generates any errors. literally never. she's unproblematic, she's drama-free, she's the moment. 🌈


🌟 SEE ALSO 🌟

bestie… there's nothing here either. an empty section. a blank canvas. a whole lotta nothing πŸ’€βœ¨


πŸ‘‘ AUTHOR πŸ‘‘

this one was Generated from xproto.xml πŸ’– if you got corrections and improvements, hit up xcb@lists.freedesktop.org β€” they're literally waiting for your email fr fr 🫢


and that's the whole page bestie, we ate, no crumbs left πŸ’… slay ✨

so yeah, this was X Version 11, libxcb 1.17.0, page xcb_ungrab_button(3) β€” go forth and ungrab those buttons, you gorgeous genius πŸ¦‹πŸ’–πŸŽ€