[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-05 10:56:34
Message-ID: 74544e5c0808050356q6c393401s8db4ec53c18522c6 () mail ! gmail ! com
[Download RAW message or body]

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.

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
>
>

["quad-shadows-incomplete.diff" (application/octet-stream)]

_______________________________________________
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