[Panel-devel] Latest changes screwed Xinerama setups

Aaron J. Seigo aseigo at kde.org
Sun Oct 28 18:12:38 CET 2007


On Saturday 27 October 2007, cedric wrote:
> r.moveLeft(r.x() + INTER_CONTAINMENT_MARGIN * screen);

arg.. i always forget that about that API. i really dislike much of the Qt 
drawing and positiong API. the matrix, rect, etc classes are just, imho, 
plaing annoying ;) 

> but even in that case, I don't think it is semantically correct, you assume
> here the second screen of your setup is always at right of the first and
> begin at the end of the first.

that doesn't matter. we simply lay out the containments left to right for the 
screen {0 .. N}, but then each screen shows it's view and grabs the 
containmentForScreen(int). so if the physical ordering is 2, 1, 0 (e.g. right 
to left) or even 0, 2, 1 they will all get the "correct" containment.

they will be "out of order" on the scene (the model) but  properly positioned 
on the physical screens.

this is one of the nice things about the model/view approach.

the trick will be to get drag 'n drop between the screens correct as we will 
then need to do a proper mapping between screen # and physical location.

but display isn't an issue =)

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071028/989a8c19/attachment.pgp 


More information about the Panel-devel mailing list