| The default colormap, by definition of the x protocol, is initialized only with
BlackPixel (usually color black, but not necessarily) and WhitePixel (ditto
with white).
You probably care at a higher level, though. Other clients can allocate colors;
in particular the session manager, window manager etc. How many they allocate
depends on their settings. If all the settings in customize colors are pure
black and pure white, they should allocate (almost) no additional colors.
If you set everything to a different value, I think there are about 6:
screen fg
screen bg
window fg
window bg
window highlight
window border
Other applications may define things differently as well, and that would also
add colors.
You can't really override this from a system level. It is up to each individual
user to customize his/her own stuff, and that is what makes the big difference
in color cells used.
Burns
|
| The map size is tied directly to the hardware colormap size, which is tied
directly to the number of bits/pixel. If the map is full, the only choices are
to
1) Try to reuse the same colors that are already in use (e.g. use the background
and foreground resources to find the colors that most others are using)
2) Try to keep there from being so many colors already allocated (e.g. change
the customize settings so that there are fewer different colors, or else start
your application sooner)
3) Use a new colormap
|