diff --git a/src/huggle_ui/historyform.cpp b/src/huggle_ui/historyform.cpp index 3c0853392..c78d08624 100644 --- a/src/huggle_ui/historyform.cpp +++ b/src/huggle_ui/historyform.cpp @@ -277,11 +277,13 @@ void HistoryForm::onTick01() } else { - QPoint pntr(0, this->pos().y()); - if (this->pos().x() > 400) - pntr.setX(this->pos().x() - 200); + // Calculate tooltip position relative to the screen where the app is located + QPoint globalPos = this->mapToGlobal(QPoint(0, 0)); + QPoint pntr(0, globalPos.y()); + if (globalPos.x() > 400) + pntr.setX(globalPos.x() - 200); else - pntr.setX(this->pos().x() + 100); + pntr.setX(globalPos.x() + 100); if (hcfg->UserConfig->ShowWarningIfNotOnLastRevision) {