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.
This commit is contained in:
parent
f341abadd7
commit
3ce989221e
@ -428,7 +428,7 @@ void ContainmentInterface::processMimeData(QMimeData *mimeData, int x, int y, KI
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_dropMenu = QPointer<DropMenu>(new DropMenu(dropJob, QPoint(x, y), this));
|
m_dropMenu = QPointer<DropMenu>(new DropMenu(dropJob, mapToGlobal(QPoint(x, y)).toPoint(), this));
|
||||||
if (dropJob) {
|
if (dropJob) {
|
||||||
dropJob->setParent(m_dropMenu);
|
dropJob->setParent(m_dropMenu);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user