Line
Link Here
|
0 |
-- source/nedit.c.or 2004-09-02 11:49:56.000000000 +0300 |
0 |
++ source/nedit.c 2007-05-29 15:15:19.000000000 +0300 |
Lines 434-439
Link Here
|
434 |
and -iconic are per-window and it should not be allowed to consume them, |
434 |
and -iconic are per-window and it should not be allowed to consume them, |
435 |
so we temporarily masked them out. */ |
435 |
so we temporarily masked them out. */ |
436 |
maskArgvKeywords(argc, argv, protectedKeywords); |
436 |
maskArgvKeywords(argc, argv, protectedKeywords); |
|
|
437 |
/* X.Org 6.8 and above add support for ARGB visuals (with alpha-channel), |
438 |
typically with a 32-bit color depth. By default, NEdit uses the visual |
439 |
with the largest color depth. However, both OpenMotif and Lesstif |
440 |
cannot handle ARGB visuals (crashes, weird display effects, ...), so |
441 |
NEdit should avoid selecting such a visual. |
442 |
Unfortunatly, there appears to be no reliable way to identify |
443 |
ARGB visuals that doesn't require some of the recent X.Org |
444 |
extensions. Luckily, the X.Org developers have provided a mechanism |
445 |
that can hide these problematic visuals from the application. This can |
446 |
be achieved by setting the XLIB_SKIP_ARGB_VISUALS environment variable. |
447 |
Users can set this variable before starting NEdit, but it is much |
448 |
more convenient that NEdit takes care of this. This must be done before |
449 |
the display is opened (empirically verified). */ |
450 |
putenv("XLIB_SKIP_ARGB_VISUALS=1"); |
437 |
TheDisplay = XtOpenDisplay (context, NULL, APP_NAME, APP_CLASS, |
451 |
TheDisplay = XtOpenDisplay (context, NULL, APP_NAME, APP_CLASS, |
438 |
NULL, 0, &argc, argv); |
452 |
NULL, 0, &argc, argv); |
439 |
unmaskArgvKeywords(argc, argv, protectedKeywords); |
453 |
unmaskArgvKeywords(argc, argv, protectedKeywords); |