* src/xterm.c (x_alloc_nearest_color_1): Disable such allocation
on DirectColor. The method we use can't possibly work there.
static bool
x_alloc_nearest_color_1 (Display *dpy, Colormap cmap, XColor *color)
{
+ struct x_display_info *dpyinfo = x_display_info_for_display (dpy);
bool rc;
+ eassume (dpyinfo);
rc = XAllocColor (dpy, cmap, color) != 0;
+
+ if (dpyinfo->visual->class == DirectColor)
+ return rc;
+
if (rc == 0)
{
/* If we got to this point, the colormap is full, so we're going