XtSetWMColormapWindows(3)

✨ XtSetWMColormapWindows β€” XT FUNCTIONS ✨

okay bestie, welcome to the XtSetWMColormapWindows(3) page πŸ’… this is a lil libXt function that handles the WM_COLORMAP_WINDOWS property for you, no cap.


πŸ’– NAME πŸ’–

XtSetWMColormapWindows β€” set the value of the WM_COLORMAP_WINDOWS property πŸŽ€


🌸 SYNTAX 🌸

#include <X11/Intrinsic.h>

void XtSetWMColormapWindows(Widget widget, Widget* list, Cardinal
       count);

like. three args. she's lowkey simple πŸ¦‹


🫢 ARGUMENTS 🫢

  • widget β€” tells you which widget's window the WM_COLORMAP_WINDOWS property is gonna get stored on. it must be of class Core or any subclass of it, periodt πŸ‘‘
  • list β€” the list of widgets whose windows are, like, potentially gonna be listed in the WM_COLORMAP_WINDOWS property ✨
  • count β€” how many widgets are in list, fr fr

πŸ’œ DESCRIPTION πŸ’œ

so here's the tea β˜• β€” XtSetWMColormapWindows returns immediately if widget is not realized, or if count is zero. like, she's not even gonna try. bye 🫑

otherwise? she builds an ordered list of windows by going through each widget in list one by one, and for each one she's like:

  • if that widget is not realized β†’ ignore it, not her problem πŸ™ˆ
  • if that widget is realized and its colormap resource is different from the colormap resources of all the widgets whose windows are already chillin' on the window list β†’ add that widget's window to the window list πŸ’–
the vibe check here is: no duplicate colormaps allowed on the list, bestie. every window that makes it in has a colormap that's genuinely different from everything already there ✨

finally β€” and this is the main character moment πŸ‘‘ β€” XtSetWMColormapWindows stores that resulting window list in the WM_COLORMAP_WINDOWS property on the specified widget's window. slay.


🌈 SEE ALSO 🌈

  • X Toolkit Intrinsics - C Language Interface
  • Xlib - C Language X Interface

okay that's the whole page, we ate and left no crumbs πŸ“ tysm for reading, this was X Version 11, libXt 1.3.1, page XtSetWMColormapWindows(3) β€” ily, go set some colormap windows bestie πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from