[kde-solaris] color pallette

David F. Newman kde-solaris@mail.kde.org
Fri Dec 27 18:28:01 2002

Hash: SHA1

On Friday 27 December 2002 10:22, David Bishop wrote:
> Well, we worked around the problem by starting Xsun in 24-bit mode, but I'm
> still kinda confused as to why it couldn't share the pallet.  Oh well,
> problem solved :-)  Thanks for helping!

OK.  It sounds like what I suspected.  Your default visual
was not 24-bit.  You would've seen that by seeing
something like depth of root window is 8-bit from xdpyinfo.
Alot of times an X app won't query the list of visuals
available and go with the default.  When you don't use
24-bit then you have a colormap and that totally sucks.
After KDE gets loaded there probably aren't many slots
in the colormap that are available for other apps. An app 
can be smart by finding the closest colors that it needs, 
but if not then it will grab as many colors as it can.
Sometimes an app can install a private colormap, like
xv or netscape.  But that is also annoying because when
you switch the focus between the app with a private
colormap and everything else you will get this weird
color flashing.

Therefore I always explicitly set the default class to
TrueColor by changing /usr/dt/config/Xservers
to read:

:0 Local local_uid@console root /usr/openwin/bin/Xsun :0
- -nobanner -dev /dev/fb defclass TrueColor defdepth 24

- -Dave

Version: GnuPG v1.2.1 (SunOS)