Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Default Visual
@ 1997-06-02  4:00 Andrew Gillies
  1997-06-06  4:00 ` Monty C. Brandenberg
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Gillies @ 1997-06-02  4:00 UTC (permalink / raw)



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 .....
-- 
Andy Gillies			email:andrew.gillies@gecm.com
Senior Software Engineer	Tel:0131-314-8257
GEC Marconi Avionics Ltd
Edinburgh



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Default Visual
  1997-06-02  4:00 Default Visual Andrew Gillies
@ 1997-06-06  4:00 ` Monty C. Brandenberg
  0 siblings, 0 replies; 2+ messages in thread
From: Monty C. Brandenberg @ 1997-06-06  4:00 UTC (permalink / raw)



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					




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-06-06  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-06-02  4:00 Default Visual Andrew Gillies
1997-06-06  4:00 ` Monty C. Brandenberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox