$OpenBSD: patch-util_misc_c,v 1.1 2008/01/02 17:39:13 jasper Exp $ --- util/misc.c.orig Mon Aug 9 23:19:38 2004 +++ util/misc.c Sat Dec 29 14:39:46 2007 @@ -475,6 +475,15 @@ Boolean FindBestVisual(Display *display, const char *a bestClass = 0; bestVisual = 0; for (i=0; i < nVis; i++) { + if (visList[i].depth >= 32 && + strstr(ServerVendor(display), "X.Org") != 0) { + /* Xorg 6.8.* 32-bit visuals (with alpha-channel) cause a lot + of problems, so we have to skip them. + Users can achieve the same effect with older versions of + NEdit by setting the environment variable + XLIB_SKIP_ARGB_VISUALS. */ + continue; + } if (visList[i].depth > maxDepth) { maxDepth = visList[i].depth; bestClass = 0;