xcb_ungrab_pointer(3)
β¨ xcb_ungrab_pointer(3) β¨
okay bestie, sit down, hydrate, and let me tell you about xcb_ungrab_pointer from the XCB Requests fam π this is the one that hands the pointer back to the universe.
πΈ NAME πΈ
xcb_ungrab_pointer β release the pointer π«Ά
π SYNOPSIS π
#include <xcb/xproto.h>
π« Request function
xcb_void_cookie_t xcb_ungrab_pointer(xcb_connection_t *conn,
xcb_timestamp_t time);
π¦ REQUEST ARGUMENTS π¦
connβ bestie this is just your XCB connection to X11. the line to the server. the situationship. πtimeβ a timestamp, and it's here to avoid race conditions when you're running X over the network. no cap, this one matters:
the pointer will not be released if time is earlier than the last-pointer-grab time, or later than the current X server time. it's giving "goldilocks zone" fr fr π
π DESCRIPTION π
This releases the pointer and any queued events β but only if you actively grabbed the pointer before, using xcb_grab_pointer, xcb_grab_button, or within a normal button press. iykyk. π
EnterNotify and LeaveNotify events are generated. yes queen, the events are eventing. β¨
π RETURN VALUE π
Returns an xcb_void_cookie_t. Errors (if there are any at all) have to be handled in the event loop. that's just how the cookie crumbles π
If you'd rather handle errors directly with xcb_request_check instead, use xcb_ungrab_pointer_checked. See xcb-requests(3) for the details, bestie. π
π ERRORS π
This request does never generate any errors.
not a single one. iconic behaviour honestly. no drama, no crumbs, just peace π§
β SEE ALSO β
xcb-requests(3)xcb_enter_notify_event_t(3)xcb_grab_button(3)xcb_grab_pointer(3)xcb_leave_notify_event_t(3)
π«Ά AUTHOR π«Ά
Generated from xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. π
okay that's the whole page, you ate that π½οΈβ¨
X Version 11, from libxcb 1.17.0 β mwah, love u, go ungrab some pointers ππ¦πΈ periodt.
π¦ 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