Re: Transparent windows...
Re: Transparent windows...
- Subject: Re: Transparent windows...
- From: David Brown <email@hidden>
- Date: Sun, 1 Feb 2004 16:20:28 -0800
On Fri, Jan 30, 2004 at 08:25:44AM -0800, Jean Claude wrote:
> On Linux if I create a window and call
> XSetWindowBackgroundPixmap(display, window, None), the window will be
> created transparent with no background color. On Mac X, it seems white
> is the default background color, so I get a white window. Is there a
> way to get a transparent window on Mac X?
What you're seeing on Linux isn't really a transparent window, but a
window that just doesn't have anything drawn in it. It is expected that
you will respond to your expose event and draw something in the window.
The background of this window will not update as the contents of windows
behind it are redrawn. There are applications that fake this, but it
takes a bit of work.
Apple's X11 server renders its windows differently enough that none has
to default to something, so you see white.
I guess the proper question is, is there a way to use Quartz's window
transparency in an X11 window. I'm going to guess the answer is no.
Dave Brown
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.