XcupGetReservedColormapEntries(3)

XcupGetReservedColormapEntries3

List colormap entries reserved by the system

Usage

cc [ flag ... ] file ... -lXext [ library ... ]
#include <X11/extensions/Xcup.h>

Status XcupGetReservedColormapEntries(Display *display,
    int screen, XColor **colors_out, int *ncolors);

Arguments

display

Specifies the connection to the X server.

screen

Screen number on the host server.

colors_out

Returns the values reserved by the server.

ncolors

Returns the number of items in colors_out.

Overview

The XcupGetReservedColormapEntries function returns a list of colormap entries (pixels) that are reserved by the system. This list will, at a minimum, contain entries for the BlackPixel and WhitePixel of the specified screen. Use XFree to free colors_out.

To minimize colormap flash, an application which installs its own private colormap should query the special colors by calling XCupGetReservedColormapEntries, and can then store those entries (in the proper location) in its private colormap using XCupStoreColors.

Releases

10 releases since Debian 5.0 (Lenny); the text changed 5 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8–11
  5. 12–13
  6. Arch

From libxext 1.3.7-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.