bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: DnD improvements


From: Adam Fedor
Subject: RE: DnD improvements
Date: Mon, 3 Dec 2001 19:46:11 -0500

> -----Original Message-----
> From: Willem Rein Oudshoorn [mailto:woudshoo@xs4all.nl]
> 
> (A) It is the right thing to do.  
> (B) If you drag a color, e.g. from the color panel a colorwell,
>     the image you drag looks as follows:
> 
>                Trans-  *
>                parent  *
>                        *
>                *********
> 
>    Where * is black.  The background color of the image you're 
>    dragging is THE color you are dragging.  
>    Because in the old code the background color is ignored
>    you do not see the color you are dragging.  
>   

Thanks for the pointer. I can see it now.  I think the problem, however,
is that although there is a background in
cached image, the alpha on the color is 1, so when it gets composited
(again) to the drag view, it
gets ignored. What I'm not sure is if that's an error in how we
interpret compositing and alpha values or if it's an error on the
NSColorPanel's part in drawing the image. I'll have to test it out,
unless anyone knows how this works.

> I am not sure what code you are refering to, but the main problem was
> that the call to
>  
>    XDefineCursor
> 
> with the exact SAME arguments, did work in some cases and did not in
> other cases.  (NOTE: At least in my private version, I should
> check the cvs version if this is also the case, but because 
> I could not fix it I did not commit my changes to the cursor
> stuff)

Try the latest CVS.  The problem is  that X cursors only work within a
particular window, not globally, as is assumed in OpenStep. I've updated
the cursor handling to account for this, I think.

 
> There might be other problems, and I would like to hear them.  
> Also I will try to fix (B) and later (A), but this week I 
> will not have time.  
> 
> 

OK, that's probably what I saw.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]