From 3ce989221ed6749694a7d9a681bdcb8cb2b9a654 Mon Sep 17 00:00:00 2001 From: David Redondo Date: Tue, 10 Nov 2020 10:14:31 +0100 Subject: [PATCH] Show drop menu at correct global position The coordinates we get are relative to the containment. Before when dragging a file to a second screen it would show the menu on the first screen. --- src/scriptengines/qml/plasmoid/containmentinterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scriptengines/qml/plasmoid/containmentinterface.cpp b/src/scriptengines/qml/plasmoid/containmentinterface.cpp index 7f877da31..78ea7e41d 100644 --- a/src/scriptengines/qml/plasmoid/containmentinterface.cpp +++ b/src/scriptengines/qml/plasmoid/containmentinterface.cpp @@ -428,7 +428,7 @@ void ContainmentInterface::processMimeData(QMimeData *mimeData, int x, int y, KI } return; } - m_dropMenu = QPointer(new DropMenu(dropJob, QPoint(x, y), this)); + m_dropMenu = QPointer(new DropMenu(dropJob, mapToGlobal(QPoint(x, y)).toPoint(), this)); if (dropJob) { dropJob->setParent(m_dropMenu); }