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 theWM_COLORMAP_WINDOWSproperty is gonna get stored on. it must be of classCoreor any subclass of it, periodt πlistβ the list of widgets whose windows are, like, potentially gonna be listed in theWM_COLORMAP_WINDOWSproperty β¨countβ how many widgets are inlist, 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 InterfaceXlib - 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
- alpine 3.22: libxt-doc 1.3.1-r0 Β· MIT
- alpine 3.23: libxt-doc 1.3.1-r0 Β· MIT
- alpine 3.24: libxt-doc 1.3.1-r0 Β· MIT
- arch rolling: libxt 1.3.1-1 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 43: libXt-devel 1.3.1-3.fc43 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 43: libXt-devel 1.3.1-3.fc43 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 44: libXt-devel 1.3.1-4.fc44 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 44: libXt-devel 1.3.1-4.fc44 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- Copyright (c) 1993, 1994 X Consortium
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms