diff options
author | mbalmer <mbalmer@pkgsrc.org> | 2013-06-23 09:30:14 +0000 |
---|---|---|
committer | mbalmer <mbalmer@pkgsrc.org> | 2013-06-23 09:30:14 +0000 |
commit | dd8e8d937284a466f840398d13c5b551f2745ae0 (patch) | |
tree | cf89eeff8176f0379a849182d332c5c1b8ea9226 /editors/nedit/patches | |
parent | 09348703c34736558f7f8661ade33442ecbdaebe (diff) | |
download | pkgsrc-dd8e8d937284a466f840398d13c5b551f2745ae0.tar.gz |
Add a patch from Red Hat to set the default visual. This avoids crashes
when saving the defaults and should fix PR pkg/47777
Diffstat (limited to 'editors/nedit/patches')
-rw-r--r-- | editors/nedit/patches/patch-util_misc.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/editors/nedit/patches/patch-util_misc.c b/editors/nedit/patches/patch-util_misc.c new file mode 100644 index 00000000000..87434ed3fe8 --- /dev/null +++ b/editors/nedit/patches/patch-util_misc.c @@ -0,0 +1,14 @@ +--- util/misc.c.orig 2013-06-23 11:14:52.000000000 +0200 ++++ util/misc.c 2013-06-23 11:16:27.000000000 +0200 +@@ -383,7 +383,10 @@ Boolean FindBestVisual(Display *display, + *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. */ |