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

List:       kwin
Subject:    Re: TwinView trouble with cover/flip switch
From:       Lubos Lunak <l.lunak () kde ! org>
Date:       2008-03-20 16:45:26
Message-ID: 200803201745.26510.l.lunak () kde ! org
[Download RAW message or body]

On Wednesday 19 of March 2008, Martin Graesslin wrote:
> good. I just finished the testing and well I never want to do anything with
> TwinView again ;-)

 Welcome to the wonder world of multiple screens :).


> I only tested with NVIDIA TwinView so I don't know how it works with normal
> xinerama, but I think there should not be any difference.

 There should not be any. You can even fake Xinerama on a single monitor with 
http://ktown.kde.org/~seli/fakexinerama/ .

> I had to do some ugly hacks to get it working with screens positioned above
> each other and for different resolutions. I decided that when different
> resolutions are used, the effect will only be shown on the "bigger" screen.

 That's a strange decision. If nothing else, it's at least inconsistent with 
everything else. The effect should always happen on the active screen in the 
area it gets from clientArea() [*]. Why would you want to do it that way?

[*] I'm actually not sure which option fits the best. Maybe I should add 
ToolArea or something like that?

> So I tested:
> Primary on left, right, above and below both with same resolution and
> different resolution. Everything is working as it should ;-)

 No, sorry. Besides the above, the animations when entering/leaving the effect 
are not correct. The clipping happens way too soon, so window from the 
inactive screen is clipped while moving into its position. The animation also 
wraps around on the lower screen with the "below" setup, but I wouldn't worry 
about such setup much.

 I suggest just using the area given by clientArea() for the actual effect and 
computing the entering/leaving animations with regard to it, but without any 
clipping.

-- 
Lubos Lunak
KDE developer
--------------------------------------------------------------
SUSE LINUX, s.r.o.   e-mail: l.lunak@suse.cz , l.lunak@kde.org
Lihovarska 1060/12   tel: +420 284 028 972
190 00 Prague 9      fax: +420 284 028 951
Czech Republic       http://www.suse.cz
_______________________________________________
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