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
+ // macOS menu bar is always 22 (effective) pixels
// don't use availableGeometry() here, because this also excludes the dock
return 22+6;
#else
}
} else {
// tray icon is on the top
-#endif
+ return (trayScreen->geometry().height() - trayScreen->availableGeometry().height()) + 6;
}
+#endif
}
} // namespace OCC