opnsense-ports/editors/nedit/files/patch-util-misc.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

14 lines
590 B
C

--- util/misc.c.orig 2004-08-09 18:20:00.000000000 -0400
+++ util/misc.c 2012-02-03 02:54:30.000000000 -0500
@@ -383,7 +383,10 @@
*colormap = cachedColormap;
return (*visual == DefaultVisual(display, screen));
}
-
+
+ /* Set "Default" visual to avoid crashes with the detected best ones. */
+ reqID = DefaultVisual(display, screen)->visualid;
+
/* Read the visualID and installColormap resources for the application.
visualID can be specified either as a number (the visual id as
shown by xdpyinfo), as a visual class name, or as Best or Default. */