Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
This commit is contained in:
Dominique Fuchs 2020-01-04 12:15:01 +01:00
Родитель ed9c06583a
Коммит dc9744448c
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -132,7 +132,7 @@ int Systray::calcTrayWindowX()
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
@ -162,7 +162,8 @@ int Systray::calcTrayWindowY()
}
} else {
// tray icon is on the top
#endif
return (trayScreen->geometry().height() - trayScreen->availableGeometry().height()) + 6;
}
#endif
}
} // namespace OCC