[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-11-02 7:21:15
Message-ID: 1225610475.229425.32239.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 878937 by aseigo:

make this work better for the default case


 M  +8 -1      corona.cpp  


--- trunk/KDE/kdebase/workspace/libs/plasma/corona.cpp #878936:878937
@@ -411,7 +411,14 @@
 QRect Corona::screenGeometry(int id) const
 {
     Q_UNUSED(id);
-    return sceneRect().toRect();
+    if (views().isEmpty()) {
+        return sceneRect().toRect();
+    } else {
+        QGraphicsView *v = views()[0];
+        QRect r = sceneRect().toRect();
+        r.moveTo(v->mapToGlobal(v->pos()));
+        return r;
+    }
 }
 
 QRegion Corona::availableScreenRegion(int id) const
[prev in list] [next in list] [prev in thread] [next in thread] 

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