T.R | Title | User | Personal Name | Date | Lines |
---|
425.1 | Nosome stuff | MELTIN::dick | Schoeller - Xperimenting with Xnotes | Fri Mar 17 1989 08:57 | 17 |
| Fred,
The ICCCM says that you should not try to install your color map. Instead
the WM is supposed to do it for you. The reason is so that the WM can
control installing the color map for the client that currently has the
"color focus". The color focus generally goes along with the input focus.
Afterall, friendly clients do not cause interference when they are not
"active" 8^{).
On the issue of try to get 256 colors, _X_Window_System_C_Library_and_
_Protocol_Reference_ explicitly states that 2 colors will be allocated
by the system for BlackPixel and WhitePixel. If you can guarantee what
RGB value is in those 2 pixels, you can work around them but can't allocate
them "writeable".
Dick
|
425.2 | Use XSetWindowColormap | RICKS::ANTONELLI | Mark Antonelli | Fri Mar 17 1989 10:41 | 9 |
| Try using XSetWindowColormap which will modify the colormap attribute
of the window structure. The window manager will know about this
and will typically install your colormap when your window gets focus.
Mark
(You could also use XChangeWindowAttributes or specify the colormap
in the XSetWindowAttributes structure passed to XCreateWindow.)
|
425.3 | Clarification | DECWIN::FISHER | Burns Fisher 381-1466, ZKO3-4/W23 | Fri Mar 17 1989 12:46 | 11 |
| re .1: I may have thought you said something different
than you did, but only the DEFAULT colormap has
BlackPixel and WhitePixel pre-allocated. Others do not.
Of course on a VSII/GPX, the last two colors of the
colormap are reserved in hardware for the cursor colors.
In this case, the default colormap also has these
preallocated, although we do let you take them over in
a non-default colormap.
Burns
|
425.4 | oops... | MELTIN::dick | Schoeller - Xperimenting with Xnotes | Fri Mar 17 1989 13:22 | 4 |
| my mistake. I knew that they were being taken and mistook why.
Dick
|
425.5 | Is this a limitation of dwm? | SPRITE::MILLER | | Fri Mar 17 1989 13:31 | 11 |
| Thanks for the replys, but what I think I'm hearing is,
while using dwm, it's not possible to bring up a window that has focus
and the proper colormap installed. Relieable.
I want this client to be "Friendly" and show the user the correct color
image, and not require the user to click on that window, in order to
view the true colors.
Fred
|
425.6 | | PSW::WINALSKI | Paul S. Winalski | Sun Mar 19 1989 15:55 | 13 |
| RE: .5
I guess friendliness is in the eye of the beholder...
If I were running your application, I'd be pretty damn annoyed when it came
up and zorked all the colors in the windows I was actively talking to at the
moment.
Bottom line: it is up to the window manager that the user has chosen to
enforce color policy.
--PSW
|