Spreadsheet: restore fix for multi-screen management of QtColorPicker

This commit is contained in:
wmayer
2022-11-07 21:43:14 +01:00
parent 952f7adbad
commit 549774e953

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());