Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
}
int Systray::calcTrayWindowY()
{
+#ifdef Q_OS_OSX
+ // macOS menu bar is always 22 (effective) pixels and at the top
+ // don't use availableGeometry() here, because this also excludes the dock
+ return 22+6;
+#else
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
QScreen *trayScreen = QGuiApplication::screenAt(this->geometry().topRight());
#else
}
} else {
// tray icon is on the top
- return (trayScreen->geometry().height() - trayScreen->availableGeometry().height()) + 6;
+#endif
}
}
} // namespace OCC