Composite overlay window

James Jones jajones at nvidia.com
Thu Mar 23 15:17:44 PST 2006


On Thursday 23 March 2006 03:14 pm, Kristian Høgsberg wrote:
> Hi,
>
> I was discussing the new overlay window additions in composite
> with Søren, and he pointed out that there is no way to specify
> the visual for the overlay window:
>
> 	Window
> 	XCompositeGetOverlayWindow (Display *dpy, Window window);
>
> 	void
> 	XCompositeReleaseOverlayWindow (Display *dpy, Window window);
>
> and reading the code, it turns out that it's just using the root
> visual. I was of the impression that one of the compelling
> arguments for going with the overlay window approach was that
> you'd get to specify the visual when creating the overlay window.

I believe the intended usage is to create a child window of the 
composite overlay window with your favorite visual, then do your 
compositing into that window.

Thanks,
-James Jones

> Should we add a visual argument to XCompositeGetOverlayWindow? 
> Also, it looks like the only reason for passing in a window is to
> get at the screen that window belongs to.  In that case, I think
> it would be clearer to just pass in the screen number.
>
> cheers,
> Kristian
>
> _______________________________________________
> xorg mailing list
> xorg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg



More information about the xorg mailing list