XGetXCBConnection(3)
β¨ XGetXCBConnection β¨
okay bestie, so this one lives in the XLIB FUNCTIONS family (that's the manual section it's chillin' in) and it's literally called XGetXCBConnection β say that three times fast, i dare you π
π NAME π
XGetXCBConnection β grab the XCB connection that goes with an Xlib Display π¦
πΈ SYNTAX πΈ
#include <X11/Xlib-xcb.h>
xcb_connection_t *XGetXCBConnection(Display *dpy);
π ARGUMENTS π
dpyβ specifies the connection to the X server. that's the XlibDisplayyou're handing over, the one you want the matching XCB connection for π«Ά
β¨ DESCRIPTION β¨
so like, the XGetXCBConnection function returns the XCB connection associated with an Xlib Display. that's it, that's the whole job, and it ate π
and here's the slay part: clients can use this XCB connection with functions from the XCB library, just as they would with an XCB connection created with XCB. same energy, same vibes, no cap π§
okay but listen, there's a catch and it's giving prerequisites: callers of this function must link to libX11-xcb and a version of Xlib built with XCB support. no linky, no conn-y, bestie π
π SEE ALSO π
XOpenDisplay(3)XSetEventQueueOwner(3)Xlib - C Language X Interface
and that's the whole page, periodt β¨ this lil icon was brought to you by X Version 11 π libX11 1.8.13 π β yes the version number is literally part of the footer, i would never gatekeep that from u π stay hydrated, link ur libs, bye bestie π¦π
π¦ where this page comes from
- centos-stream 10: libX11-devel 1.8.13-2.el10 Β· MIT AND X11
- fedora 43: libX11-devel 1.8.13-1.fc43 Β· MIT AND X11
- fedora 43: libX11-devel 1.8.13-1.fc43 Β· MIT AND X11
- fedora 44: libX11-devel 1.8.13-1.fc44 Β· MIT AND X11
- fedora 44: libX11-devel 1.8.13-1.fc44 Β· MIT AND X11
- fedora 44: libX11-devel 1.8.13-3.fc44 Β· MIT AND X11
- fedora 44: libX11-devel 1.8.13-3.fc44 Β· MIT AND X11
- ubuntu resolute: libx11-xcb-dev 2:1.8.13-1
- ubuntu resolute: libx11-xcb-dev 2:1.8.13-1ubuntu0.1
- ubuntu stonking: libx11-xcb-dev 2:1.8.13-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms