Submit a Story  :  IRAF Links  :  Past Polls  :  Calendar  :  Advanced Search  
     iraf.net
FAQ
 Forum FAQForum FAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ximtool and colors

 
Post new topic   Reply to topic    iraf.net Forum Index -> Applications
View previous topic :: View next topic  
Author Message
RobSwaters



Joined: 13 Jan 2006
Posts: 2

PostPosted: Fri Jan 13, 2006 4:02 pm    Post subject: ximtool and colors Reply with quote

Let's start with the good news: with the help of previous posts on this site I have managed to get ximtool working properly. For me, the trick was to start the a vncserver -depth 8 :1 (on my 24 bits display), then vncviewer :1, and display ximtool in display :1. Images display correctly, and when the stretch is adjusted, the colors in the display change accordingly.

Now for the question: ximtool does not appear to work correctly when displayed on my second monitor, which has an 8-bit display. ximtool starts fine, but it does not appear to get a private color map. The colors are random, and when I change the stretch, nothing happens.
I'm running the KDE desktop, and KDE has used up pretty much all colors, so ximtool should use a private color map to work correctly. I have tried several other applications (mozilla -install, saoimage, GIPSY's "gids" display"). These all work as I would expect, in the sense that they get a private colormap, and moving between these windows causes the characteristic "flashing" of loosing and then reacquiring the color map. ds9 -private kind-of works: it does get a private color map initially, but it does not reacquire it after loosing and then reacquiring focus.
Ximtool, on the other hand, never seems to get a private color map. In some of the posts I read that some window managers do not give ximtool proper colormap focus.

Interestingly, if I run xwininfo on some of the windows with "correct" private color maps, this is the result:
Colormap: 0x4e00008 (installed)
Colormap: 0x6e00005 (installed)
The colormap for the root window is:
Colormap: 0x12f (installed)
The colormap for ximtool is:
Colormap: 0x12f (installed)
I.e., the same as the root window. I would have expected that ximtool would have a unique colormap ID.
For completeness, the colormap for ds9 -private is:
Colormap: 0x12f (not installed)

Given that some display programs apparently can get proper colormap focus with the window manager that I use, and given that ximtool appears to share its colormap with the root window, is it possible that ximtool does not optimally handle the colormap?

Of course, this is not a critical issue, because I have several display programs that work as I would expect, and I have a workaround for ximtool, but it would be nice to use ximtool without the extra steps involved.

In any case, the vncserver/vncclient is a great solution for computers with single displays, such as laptops.

Thanks,

Rob.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    iraf.net Forum Index -> Applications All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2009 phpBB Group
 Copyright © 2005-2011 iraf.net
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.09 seconds