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

List:       kde-commits
Subject:    branches/KDE/3.4/kdelibs/kdeui
From:       Luboš Luňák <l.lunak () kde ! org>
Date:       2005-08-19 12:32:53
Message-ID: 1124454773.905310.18142.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 450893 by lunakl:

Fix xinerama.



 M  +9 -9      kpassivepopup.cpp  


--- branches/KDE/3.4/kdelibs/kdeui/kpassivepopup.cpp #450892:450893
@@ -235,23 +235,23 @@
 
     QRect r = KGlobalSettings::desktopGeometry(QPoint(x+w/2,y+h/2));
 
-    if ( x < ( r.width() / 2 ) )
+    if ( x < r.center().x() )
 	x = x + target.width();
     else
 	x = x - w;
 
     // It's apparently trying to go off screen, so display it ALL at the bottom.
-    if ( (y + h) > r.height() )
-	y = r.height() - h;
+    if ( (y + h) > r.bottom() )
+	y = r.bottom() - h;
 
-    if ( (x + w) > r.width() )
-	x = r.width() - w;
+    if ( (x + w) > r.right() )
+	x = r.right() - w;
 
-    if ( y < 0 )
-        y = 0;
+    if ( y < r.top() )
+        y = r.top();
 
-    if ( x < 0 )
-	x = 0;
+    if ( x < r.left() )
+	x = r.left();
 
     move( x, y );
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

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