Hi,
In a multimonitor setup the desktop containment's toolbox are not well
positioned. Sometimes they appear on only one monitor,  sometimes both
appear at the same corner, or at some weird position.

The issue is in ContainmentPrivate::positionToolBox(), the toolbox is
positioned in the screens coordinate system, whereas it should be in
the containment's. The attached patch (against kdebase/workspace) fix
this issue. Ok to commit?
g
Index: libs/plasma/containment.cpp
===================================================================
--- libs/plasma/containment.cpp (revision 868895)
+++ libs/plasma/containment.cpp (working copy)
@@ -1495,6 +1495,10 @@
         QRectF avail = desktop->availableGeometry(screen);
         QRectF screenGeom = desktop->screenGeometry(screen);
 
+        // Transform to the containment's coordinate system.
+        avail.translate(-screenGeom.topLeft());
+        screenGeom.moveTo(0, 0);
+
         if (q->view() && !q->view()->transform().isScaling()) {
 
             if (QApplication::layoutDirection() == Qt::RightToLeft) {
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to