summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2008-02-12 20:49:50 +0000
committerUlrich Müller <ulm@gentoo.org>2008-02-12 20:49:50 +0000
commit9918fd93d803934c799d852231774163b0977d5b (patch)
tree1c5163dd3409251488a5c12813bb607919f91b63 /app-editors/nedit/files
parentamd64 stable wrt bug #209888 (diff)
downloadgentoo-2-9918fd93d803934c799d852231774163b0977d5b.tar.gz
gentoo-2-9918fd93d803934c799d852231774163b0977d5b.tar.bz2
gentoo-2-9918fd93d803934c799d852231774163b0977d5b.zip
Fix Motif version detection and disable ARGB visuals, bugs 200628 and 181952.
(Portage version: 2.1.4.4)
Diffstat (limited to 'app-editors/nedit/files')
-rw-r--r--app-editors/nedit/files/nedit-5.5-argbvisuals.patch24
-rw-r--r--app-editors/nedit/files/nedit-5.5-motif23.patch13
2 files changed, 37 insertions, 0 deletions
diff --git a/app-editors/nedit/files/nedit-5.5-argbvisuals.patch b/app-editors/nedit/files/nedit-5.5-argbvisuals.patch
new file mode 100644
index 000000000000..e684892e65ad
--- /dev/null
+++ b/app-editors/nedit/files/nedit-5.5-argbvisuals.patch
@@ -0,0 +1,24 @@
+
+--- source/nedit.c.or 2004-09-02 11:49:56.000000000 +0300
++++ source/nedit.c 2007-05-29 15:15:19.000000000 +0300
+@@ -434,6 +434,20 @@
+ and -iconic are per-window and it should not be allowed to consume them,
+ so we temporarily masked them out. */
+ maskArgvKeywords(argc, argv, protectedKeywords);
++ /* X.Org 6.8 and above add support for ARGB visuals (with alpha-channel),
++ typically with a 32-bit color depth. By default, NEdit uses the visual
++ with the largest color depth. However, both OpenMotif and Lesstif
++ cannot handle ARGB visuals (crashes, weird display effects, ...), so
++ NEdit should avoid selecting such a visual.
++ Unfortunatly, there appears to be no reliable way to identify
++ ARGB visuals that doesn't require some of the recent X.Org
++ extensions. Luckily, the X.Org developers have provided a mechanism
++ that can hide these problematic visuals from the application. This can
++ be achieved by setting the XLIB_SKIP_ARGB_VISUALS environment variable.
++ Users can set this variable before starting NEdit, but it is much
++ more convenient that NEdit takes care of this. This must be done before
++ the display is opened (empirically verified). */
++ putenv("XLIB_SKIP_ARGB_VISUALS=1");
+ TheDisplay = XtOpenDisplay (context, NULL, APP_NAME, APP_CLASS,
+ NULL, 0, &argc, argv);
+ unmaskArgvKeywords(argc, argv, protectedKeywords);
diff --git a/app-editors/nedit/files/nedit-5.5-motif23.patch b/app-editors/nedit/files/nedit-5.5-motif23.patch
new file mode 100644
index 000000000000..bfbb971c1abf
--- /dev/null
+++ b/app-editors/nedit/files/nedit-5.5-motif23.patch
@@ -0,0 +1,13 @@
+
+--- util/check_lin_tif.c.or 2007-10-17 12:53:19.000000000 +0300
++++ util/check_lin_tif.c 2007-10-17 13:02:29.000000000 +0300
+@@ -251,7 +251,8 @@
+ if (!force_bad &&
+ ((XmVERSION == 2 && XmREVISION == 1) ||
+ (XmVERSION == 2 && XmREVISION == 2 && XmUPDATE_LEVEL == 3 &&
+- strcmp("@(#)Motif Version 2.2.3", vs) == 0))) {
++ strcmp("@(#)Motif Version 2.2.3", vs) == 0) ||
++ (XmVERSION == 2 && XmREVISION >= 3))) {
+ exit(0);
+ }
+