aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2012-02-03 08:51:32 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2012-02-03 08:51:32 +0000
commit095dbf19d87d2a43635b340a7ad7cae0ff1a3dcd (patch)
tree875e5c3bb26c87194fa41954cf513693c7e28239 /editors
parent2dfc10ae525bfb30c6f6f717a9773fa7f00e6d8a (diff)
downloadports-095dbf19d87d2a43635b340a7ad7cae0ff1a3dcd.tar.gz
ports-095dbf19d87d2a43635b340a7ad7cae0ff1a3dcd.zip
Notes
Diffstat (limited to 'editors')
-rw-r--r--editors/nedit/files/patch-util-misc.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/editors/nedit/files/patch-util-misc.c b/editors/nedit/files/patch-util-misc.c
new file mode 100644
index 000000000000..29640e2fefe2
--- /dev/null
+++ b/editors/nedit/files/patch-util-misc.c
@@ -0,0 +1,14 @@
+--- 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. */