From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2a2f74d6c11864c9 X-Google-Attributes: gidfee84,public From: mcbinc@world.std.com (Monty C. Brandenberg) Subject: Re: Default Visual Date: 1997/06/06 Message-ID: #1/1 X-Deja-AN: 246609721 Sender: news@world.std.com (Mr Usenet Himself) References: <3392950B.81C@gecm.com> Organization: MCB, Inc. Reply-To: mcbinc@world.std.com Newsgroups: comp.unix.osf.osf1 In <3392950B.81C@gecm.com> Andrew Gillies wrote: > How do I change the default visual when starting the X server ? > The default is Truecolor 24 Bit but I would like to use another of the > supported visuals, but get a BadMatch error in XCreateWindow when I try > this - there seems to be some dubiety about using other visuals when the > default is Truecolor 24 bit ??! > (DEC Alpha 266, Digital Unix 4.0b, OSF 1.0.1) > Thanks in advance ..... > If a correct restatement of the real problem is: how to create a window using a visual other than the default for the screen then this is a simple X programming error. The window attributes for the window must be correct at the time of creation or an error, often BadMatch, occurs. The typical attributes when this occurs are: BackgroundPixel, BorderPixel, and Colormap. m -- Monty Brandenberg Software Consultant MCB, Inc. mcbinc@world.std.com 617.864.6907