Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37910097
en ru br
ALT Linux repos
S:3.3.8d-alt16.1
5.0: 3.3.8b-alt3
4.1: 3.3.8b-alt2.qa1
4.0: 3.3.8b-alt0.M40.1
3.0: 3.3.4-alt6
+updates:3.3.4-alt6.3.M30

Group :: System/Libraries
RPM: qt3

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: fix-xinerama-dialog-placement.diff
Download


--- src/dialogs/qdialog.cpp.sav	2005-05-05 13:45:20.000000000 +0200
+++ src/dialogs/qdialog.cpp	2005-08-19 16:35:58.000000000 +0200
@@ -796,7 +796,9 @@ void QDialog::adjustPositionInternal( QW
 	w = w->topLevelWidget();
     QRect desk;
     if ( w ) {
-	scrn = QApplication::desktop()->screenNumber( w );
+	// Use mapToGlobal rather than geometry() in case w might
+	// be embedded in another application
+	scrn = QApplication::desktop()->screenNumber( w->mapToGlobal( QPoint(0,0) ) );
     } else if ( QApplication::desktop()->isVirtualDesktop() ) {
 	scrn = QApplication::desktop()->screenNumber( QCursor::pos() );
     } else {
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin