Window Transparency without Compositing Manager

Sam Spilsbury smspillaz at gmail.com
Thu Aug 7 07:10:52 PDT 2008


Sorry, looks like my original email didn't go through.
> On Thu, Aug 7, 2008 at 10:05 PM, saad shams <saad.shams at gmail.com> wrote:
>> Yes. I need "not to use composition manager"
>>
>> Ok, i got it what you explained about X Get/Put Image. So, its out of
>> relevance now.
>>
>
> I suppose it would be possible to remove the displayed part of the
> window so the occluded area will be displayed, take a snapshot, then
> XRender blend the image underneath your transparency.
>
> That would just be a super-ugly hack however.
>
> By the way, you still haven't said why you are trying to avoid using
> the composite extension.
>
>>
>> On Thu, Aug 7, 2008 at 3:48 PM, Daniel Stone <daniel at fooishbar.org> wrote:
>>>
>>> On Thu, Aug 07, 2008 at 03:40:38PM +0200, saad shams wrote:
>>> > Yes, without ANY composition manager (including xcompmgr). I was trying
>>> > to
>>> > get an overview from the code in xcompmgr that what is it doing. But
>>> > still
>>> > in the middle of it....
>>>
>>> Why are you trying to avoid using a composition manager? You need one.
>>>
>>> > So, one thing is sure from you that using XShape, translucency cannot be
>>> > achieved.
>>>
>>> Correct.
>>>
>>> > I have read somewhere on the net that I can achieve alpha-transparency
>>> > (aka
>>> > translucency) by using
>>> >
>>> > - XGetImage > Blend Source & Destination > XPutImage
>>>
>>> Not really.  You can't alpha blend with windows under you because the
>>> contents of occluded areas are undefined.  In other words, if you have
>>> two windows, #1 and #2, and #1 is on top and covering the left half of
>>> #2, XGetImage on #2 will return the right half correctly in the right
>>> half, but just garbage for the left half.
>>>
>>> > or
>>> > - XImage + mask (i havnt made the mask yet, but i will try if time !!!)
>>>
>>> Yes, but you still need a composition manager.
>>>
>>> Cheers,
>>> Daniel
>>>
>>> -----BEGIN PGP SIGNATURE-----
>>> Version: GnuPG v1.4.9 (GNU/Linux)
>>>
>>> iEYEARECAAYFAkia/R8ACgkQUVYB1rKAgJRZ1QCgiyiAC3LYuDNhvqjdr4sYam2u
>>> IYIAoMJnM3chqYswURdUjOhKMUuxn8iv
>>> =wlQL
>>> -----END PGP SIGNATURE-----
>>>
>>
>>
>> _______________________________________________
>> xorg mailing list
>> xorg at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/xorg
>>
>
>
>
> --
> Sam Spilsbury -- Developer
>



-- 
Sam Spilsbury -- Developer



More information about the xorg mailing list