Fix Open With menu position in macOS.

This commit is contained in:
John Preston 2020-12-17 16:06:36 +04:00
parent 7aa12b6e07
commit cae7e9c502

View file

@ -403,7 +403,7 @@ bool UnsafeShowOpenWithDropdown(const QString &filepath, QPoint menuPosition) {
if (!screen) {
return false;
}
const auto r = screen->availableGeometry();
const auto r = screen->geometry();
auto x = menuPosition.x();
auto y = r.y() + r.height() - menuPosition.y();
return !![menu popupAtX:x andY:y];