Spreadsheet: restore fix for multi-screen management of QtColorPicker

This commit is contained in:
wmayer
2022-11-07 21:43:14 +01:00
parent e186fc212f
commit 5cc6f4c9d4

View File

@@ -315,7 +315,7 @@ void QtColorPicker::buttonPressed(bool toggled)
if (!toggled)
return;
const QRect desktop = QApplication::primaryScreen()->geometry();
const QRect desktop = QApplication::activeWindow()->geometry();
// Make sure the popup is inside the desktop.
QPoint pos = mapToGlobal(rect().bottomLeft());