xcb_colormap_notify_event_t(3)
π NAME π
xcb_colormap_notify_event_t β the colormap for some window changed
Ok so bestie, quick vibe check: this page is from the XCB Events manual (that's the manual name, don't @ me), and it's all about one very specific little event struct. It's giving "your window's colormap just got messed with" energy. Let's get into it π
β¨ SYNOPSIS β¨
#include <xcb/xproto.h>
π¦ Event datastructure π¦
typedef struct xcb_colormap_notify_event_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
xcb_window_t window;
xcb_colormap_t colormap;
uint8_t _new;
uint8_t state;
uint8_t pad1[2];
} xcb_colormap_notify_event_t;
Look at her. Iconic. Note the field literally named _new β yes, with the underscore, because new is a whole keyword in C++ and we respect that π«Ά
π₯ EVENT FIELDS π₯
response_typeβ the type of this event, and in this case it'sXCB_COLORMAP_NOTIFY. This field also shows up in thexcb_generic_event_t, so you can use it to tell your events apart from each other. It's the little name tag at the party, fr fr.sequenceβ the sequence number of the last request processed by the X11 server. Basically the server's "bestie I did this many things so far" counter β¨windowβ the window whose associated colormap is changed, installed, or uninstalled. That's the main character right there πcolormapβ the colormap which is changed, installed, or uninstalled. Lowkey important detail: this isXCB_NONEwhen the colormap is changed by a call toFreeColormap. So if you're seeingXCB_NONE, don't panic, it's just theFreeColormapthing π_newβ NOT YET DOCUMENTED. Yeah. The manpage literally says that. Not me documenting the undocumented, I'm just telling you what's there πstateβ [no description given in the original]. She's mysterious. She's silent. She contains multitudes. πΈ
π DESCRIPTION π
This section is empty in the original page. Nothing to report, bestie β the struct above is doing all the talking π
π SEE ALSO π
xcb_generic_event_t(3)xcb_free_colormap(3)
Go read those next, they're the supporting cast π
π AUTHOR π
Generated from xproto.xml. If you've got corrections or improvements, hit up xcb@lists.freedesktop.org β they're taking notes π
And that's the whole page, bestie! This one's from X Version 11, shipped with libxcb 1.17.0 β so when you cite her, cite her right π
β¨ Stay slay, stay colormap-aware, and remember: if the colormap is XCB_NONE, it was FreeColormap. 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