[comp.windows.x] Can two color windows be highlighted at on time?

poling@wabasha.SRC.Honeywell.COM (Craig Poling(contact Jerry Carlson)) (08/02/89)

  We are running two applications at the same time, with output on
the color screen of a SUN/3.  Since we need to photograph the output
of  both simulataneously, both windows must be ( excuse me if my 
terminology isn't correct ) active at the same time ( I guess ).

  The problem is now that when the pointer is on one, the other gets
some weird color mapping.  

  Any ideas or solutions would be greatly appreciated.

              Thank you in advance.

$ Matt Hughes (612)782-7605 or 931-5850 or 782-7669
$ user name (temp) : poling@src.honeywell.com  umn-cs!srcsip!poling
$ Advanced Marine Systems Operations, Honeywell
$ Honeywell Systems and Research Center, 3660 Technology Drive, Mpls., MN 55418

converse@EXPO.LCS.MIT.EDU (Donna Converse) (08/03/89)

>   We are running two applications at the same time, with output on
> the color screen of a SUN/3.  Since we need to photograph the output
> of  both simulataneously, both windows must be ( excuse me if my 
> terminology isn't correct ) active at the same time ( I guess ).
> 
>   The problem is now that when the pointer is on one, the other gets
> some weird color mapping.  

Your two applications use two different colormaps.  When one 
application is active, its own colormap is installed, causing
the previously installed colormap to be uninstalled, and therefore 
the weird colors in the other window.

The display can show n distinct colors simultaneously; say n = 256.
If you count each distinct color among both applications, and there
are more than n, you won't be able to display the images simultaneously.
Together, they require more colormap cells than your hardware provides.

On the other hand, suppose they could use the same colormap.  You could
modify the application(s) to use a single shared (read-only) colormap.
Or, *maybe*, you could use xwd and xwud, *maybe*, to show both images
simultaneously, in the default colormap.

... double exposure?

Donna Converse
converse@expo.lcs.mit.edu



------- End of Unsent Draft