xcb_colormap_notify_event_t(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

πŸ’… 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's XCB_COLORMAP_NOTIFY. This field also shows up in the xcb_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 is XCB_NONE when the colormap is changed by a call to FreeColormap. So if you're seeing XCB_NONE, don't panic, it's just the FreeColormap thing πŸ’€
  • _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 πŸ‘‘

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. πŸŽ€