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

List:       kwin
Subject:    Re: CoverSwitch Effect
From:       Rivo Laks <rivolaks () hot ! ee>
Date:       2008-03-07 17:55:06
Message-ID: 200803071955.06447.rivolaks () hot ! ee
[Download RAW message or body]

Ühel kenal päeval (reede, 7. märts 2008) kirjutas Lubos Lunak:
> On Thursday 06 of March 2008, Rivo Laks wrote:
> > Ühel kenal päeval (reede, 7. märts 2008) kirjutas Martin Graesslin:
> > > wow. This sounds complicated. But I think it should be possible and it
> > > will probably be a lot of work :-) I hope that this change will
> > > increase the performance of the effects as a side-effect. I think this
> > > will become an interesting coding session ;-)
> >
> > It shouldn't be that complicated actually :-)
> > You can divide the windows rendered by your effect into three parts:
> >   a) the windows on the left
> >   b) the center (highlighted, active) window
> >   c) window on the right
> > For a) and c) you render windows moving from the side of the screen
> > towards the center, i.e. you first render the leftmost window, then the
> > 2nd left, etc. Same for right side - first the rightmost one, then move
> > towards the center of screen.
> > And finally you just render b) on top of everything.
>
>  Actually when a new window is moving into the center, with windows wide
> enough there's a short period of time when the new and old windows overlap.
> Unless there's some smart trick for that then this really needs depth
> buffer to work properly, but on the other hand with the animation being
> this fast I don't think we need to care about that in practice.

Hmm, indeed. But I suppose it doesn't hurt to assume that user is more 
interested in the new active window and thus just render it on top of 
everything without caring about possible overlap (which might be considered a 
bug anyway) :-)

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