From b6646bc8a88f28fd0a040c47fbca97508ae16bde Mon Sep 17 00:00:00 2001 From: Cedric Bellegarde Date: Thu, 10 Feb 2011 10:44:28 +0100 Subject: Fix issue 264223: Use mapToGlobal() for main window as geometry.x() seems to sometimes return wrong values --- src/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 62f420b7..1f867a2a 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1206,7 +1206,7 @@ void MainWindow::notifyMessage(const QString &msg, Rekonq::Notify status) int bottomLeftY = webViewOrigin.y() + tab->page()->viewportSize().height() - labelSize.height() - scrollbarSize; // setting popup in bottom-left position - int x = geometry().x(); + int x = mapToGlobal(QPoint(0, 0)).x(); int y = bottomLeftY; QPoint mousePos = tab->mapToGlobal(tab->view()->mousePos()); -- cgit v1.2.1