[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwin
Subject:    Re: Idea for conflicts with shadow effect
From:       "Lucas Murray" <lmurray () undefinedfire ! com>
Date:       2008-08-06 3:44:47
Message-ID: 74544e5c0808052044xcce135et1ed8a8afbbc0e0e1 () mail ! gmail ! com
[Download RAW message or body]

On Tue, Aug 5, 2008 at 6:56 PM, Lucas Murray <lmurray@undefinedfire.com> wrote:
> I have attached what I believe is the best method of drawing shadows
> using WindowQuads. It is INCOMPLETE and I will not be continuing
> working on this for a while so if anyone (Martin?) wants to continue
> just let me know and go for it.

Change of mind. Had a brainwave as I dozed off last night and wrote
all the required formula on the bus this morning so I think I'll just
finish the patch off tonight and be done with it.

Other than the decoration splitting change all other code can be done
entirely within the shadow effect itself, no need to add
non-rectangular quad support to the core.

> Basically it adds a new attribute to WindowQuad that describes what it
> on each edge. If you splitAtX/Y() it will mark the edges it cuts along
> as having been subdivided (Or at your option, on the edge of the
> screen) so that when the shadow effect comes along it knows exactly
> where to draw the shadow.
>
> At the moment quads are required to be rectangular on the XY plane,
> for this method to work for effects such as wobbly extra support will
> need to be added to allow non-rectangular polygons. We don't need to
> worry about XRender here as there are no effects that require
> non-rectangular shadows in that mode to begin with.
>
> If anyone would like to expand this code you will also need to add the
> split reasons to the inner sections of window decorations so that they
> don't cast shadows of their own.
>
>    Lucas
>
> On Sat, Jul 12, 2008 at 3:40 AM, Martin Graesslin
> <ubuntu@martin-graesslin.com> wrote:
>> Well we have some conflicts between shadow and wobbly windows. And today I
>> found also conflicts with cube. I think the problem is in both cases that
>> shadow effect does not care about window quads and their transformations.
>>
>> So my idea is to make shadow effect aware of window quads. So that the shadow
>> is more or less painted for each window quad instead of just once for each
>> window. I think this should make shadow wobbly as well and for quads which are
>> not painted there would not be a remaining shadow.
>>
>> Does anyone have a better idea or any suggestions?
>>
>> Regards Martin
>>
>> _______________________________________________
>> kwin mailing list
>> kwin@kde.org
>> https://mail.kde.org/mailman/listinfo/kwin
>>
>>
>
_______________________________________________
kwin mailing list
kwin@kde.org
https://mail.kde.org/mailman/listinfo/kwin
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic