On 17 Nov 2001 13:55:51 -0800 Ted Roden <[EMAIL PROTECTED]> babbled profusely:
> Hello everyone, > > Thanks again for all the help in my previous posts. > > I am creating a window and not setting a background_pixel for them. Then > I draw a rectangle with transparency over the whole window and add some > text. That works wonderfully to have a translucent window with text, I > can see through it to the window below and even the root window image, > that is what I want. However, I want to change the color of the window > when your mouse goes over it, so I figured I'd clear the area the > rectangle was in with either XClearWindow or XClearArea, but that > doesn't seem to do the trick. I also tried deleting the XftDraw and > recreating that, that didn't work either. > > After looking around Xft.h, I couldn't spot anything that seemed like it > would help. Is there a (cheap and) easy way to do this? no. there isn't. you cannto do what you want. (the only hope u have it so firxt grab the screen contents (or window contents) before they get damaged (very hard) or before the window maps.. and then always clear by copying this onto the window - if window sunder neath update.. your window won't. what you get is an artifact of windows with "no background". window swith no backroudn don clear the screen witha color or a pixmap when they map - they leave the framebuffer just as is. you are basing your program on an artifact - and thats a very bad way to base a program :) > Thanks. > Ted. > > > > > > _______________________________________________ > Render mailing list > [EMAIL PROTECTED] > http://XFree86.Org/mailman/listinfo/render -- --------------- Codito, ergo sum - "I code, therefore I am" -------------------- The Rasterman (Carsten Haitzler) [EMAIL PROTECTED] [EMAIL PROTECTED] Mobile Phone: +61 (0)413 451 899 Home Phone: 02 9386 9362 _______________________________________________ Render mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/render
