FVWM: Re: Colormap issues

From: Tim Freedom <tim_freedom_at_yahoo.com>
Date: Wed, 2 Oct 2002 17:41:44 -0700 (PDT)

On Wed, 02 Oct 2002 19:04:58 -0400 "Dan Espen" wrote:
>
> Tim Freedom writes:
> > OK, after some digging I figured out that the video card on the
> > Sun-Ultras here is set to 8+24 depth (that is 8 __and__ 24 bit).
> > In other words its 24-bit enabled, but is capable of showing 8-bit
> > only applications (in case those applications check, I guess).
>
> Gee, pretty neat video card.
> I don't have any experience with it.
> From the fvwm man page, it looks like you might be able
> to use either the -visual or -visualId argument to force fvwm to
> use a specific visual.

A couple of things (I must be cursed or something :-) I get the same
"odd" results using either method noted above (ie. visual or visualId).

1. You might want to apply the following patch for all those '-visual'
   options to work (it currently looks only for the first letter on
   most of the visual options and so if you have "truecolor" that will
   not trigger anything -- contrary to what the man page says; ie.
   truecolor should work as an option). Otherwise do a string crawl to
   compare only the first character of the word or something.

#### PATCH BEGIN ####
--- ./fvwm/fvwm.c.old Wed Oct 2 17:18:54 2002
+++ fvwm/fvwm.c Wed Oct 2 17:21:41 2002
_at_@ -1786,27 +1786,27 @@
                         {
                                 usage();
                         }
- if (StrEquals(argv[i], "staticg"))
+ if (StrEquals(argv[i], "staticgray"))
                         {
                                 visualClass = StaticGray;
                         }
- else if (StrEquals(argv[i], "g"))
+ else if (StrEquals(argv[i], "grayscale"))
                         {
                                 visualClass = GrayScale;
                         }
- else if (StrEquals(argv[i], "staticc"))
+ else if (StrEquals(argv[i], "staticcolor"))
                         {
                                 visualClass = StaticColor;
                         }
- else if (StrEquals(argv[i], "p"))
+ else if (StrEquals(argv[i], "pseudocolor"))
                         {
                                 visualClass = PseudoColor;
                         }
- else if (StrEquals(argv[i], "t"))
+ else if (StrEquals(argv[i], "truecolor"))
                         {
                                 visualClass = TrueColor;
                         }
- else if (StrEquals(argv[i], "d"))
+ else if (StrEquals(argv[i], "directcolor"))
                         {
                                 visualClass = DirectColor;
                         }
#### PATCH END ####

2. I also tried to start with '-visualId' set to 0x26 since xdpyinfo
   notes,

    ...
    visual id: 0x25
    class: StaticGray
    depth: 8 planes
    available colormap entries: 256
    red, green, blue masks: 0x0, 0x0, 0x0
    significant bits in color specification: 8 bits
  visual:
    visual id: 0x26
    class: TrueColor
    depth: 24 planes
    available colormap entries: 256 per subfield
    red, green, blue masks: 0xff0000, 0xff00, 0xff
    significant bits in color specification: 8 bits

In either case, I get the following stderr output - what does it
mean ?

 [FVWM][FvwmErrorHandler]: <<ERROR>> *** internal error ***
 [FVWM][FvwmErrorHandler]: <<ERROR>> Request 72, Error 8, EventType: 0
 [FVWM][FvwmErrorHandler]: <<ERROR>> *** internal error ***
 [FVWM][FvwmErrorHandler]: <<ERROR>> Request 72, Error 8, EventType: 0
 [FVWM][FvwmErrorHandler]: <<ERROR>> *** internal error ***
 [FVWM][FvwmErrorHandler]: <<ERROR>> Request 72, Error 8, EventType: 0

And all my FvwmButtons are rather scrambled and ... well take a look for
yourself - a small image is attached. Otherwise all else seems ok.

What am I doing wrong ?

Using snap-20020926

Thanks

 .tf. (please CC replies)


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Wed Oct 02 2002 - 19:42:42 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:53 BST