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

List:       kde-commits
Subject:    KDE/kdebase/workspace/libs/plasma
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2008-01-07 2:15:31
Message-ID: 1199672131.853534.25757.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 758160 by aseigo:

move panels even on vertically arranged monitors up into negative space


 M  +4 -2      containment.cpp  


--- trunk/KDE/kdebase/workspace/libs/plasma/containment.cpp #758159:758160
@@ -674,8 +674,10 @@
             //kDebug() << "setting geometry to" << desktop->screenGeometry(screen) \
<< r << geometry();  } else if (containmentType() == PanelContainment) {
             QRect r = desktop->screenGeometry(screen);
-            //kDebug() << "we are a panel on" << r << ", let's move ourselves to a \
                negative coordinate system" << -r.height() - \
                INTER_CONTAINMENT_MARGIN;
-            int vertOffset = r.height() + INTER_CONTAINMENT_MARGIN;
+            //kDebug() << "we are a panel on" << r << ", let's move ourselves to a \
negative coordinate system" << -(r.x() * 2) - r.height() - INTER_CONTAINMENT_MARGIN; \
+            // panels are moved into negative coords; we double the x() so that each \
screen get's +            // it's own area for panels
+            int vertOffset = (r.x() * 2) + r.height() + INTER_CONTAINMENT_MARGIN;
             translate(0, -vertOffset);
         }
     }


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

Configure | About | News | Add a list | Sponsored by KoreLogic