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

List:       kde-commits
Subject:    branches/KDE/3.5/kdemultimedia/kmix
From:       James Ots <kde () jamesots ! com>
Date:       2005-08-01 0:02:15
Message-ID: 1122854535.781690.29248.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 441807 by jamesots:

Handle Multihead displays correctly.


 M  +4 -4      kmixdockwidget.cpp  


--- branches/KDE/3.5/kdemultimedia/kmix/kmixdockwidget.cpp #441806:441807
@@ -264,12 +264,12 @@
 		// moved out-of-the screen on the right (see Bug 101742).
 		QDesktopWidget* vdesktop = QApplication::desktop();
 		const QRect& vScreenSize = vdesktop->screenGeometry(_dockAreaPopup);
-		if ( (x+_dockAreaPopup->width()) > (vScreenSize.width()) ) {
+		if ( (x+_dockAreaPopup->width()) > (vScreenSize.width() + vScreenSize.x()) ) {
 			// move horizontally, so that it is completely visible
-			_dockAreaPopup->move(vScreenSize.width() - _dockAreaPopup->width() -1 , y);
+			_dockAreaPopup->move(vScreenSize.width() + vScreenSize.x() - _dockAreaPopup->width() -1 , y);
 		} // horizontally out-of bound
-		else if ( x < 0 ) {
-			_dockAreaPopup->move(0, y);
+		else if ( x < vScreenSize.x() ) {
+			_dockAreaPopup->move(vScreenSize.x(), y);
 		}
 		// the above stuff could also be implemented vertically
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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