summaryrefslogtreecommitdiff
path: root/src/macos.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/macos.m')
-rw-r--r--src/macos.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/macos.m b/src/macos.m
index 54ca0e07..d737e9e8 100644
--- a/src/macos.m
+++ b/src/macos.m
@@ -664,7 +664,8 @@ void showPopupMenu_MacOS(iWidget *source, iInt2 windowCoord, const iMenuItem *it
664 } 664 }
665 windowCoord.y = window->size.y - windowCoord.y; 665 windowCoord.y = window->size.y - windowCoord.y;
666 windowCoord = divf_I2(windowCoord, window->pixelRatio); 666 windowCoord = divf_I2(windowCoord, window->pixelRatio);
667 NSPoint screenPoint = [nsWindow convertPointToScreen:(CGPoint){ windowCoord.x, windowCoord.y }]; 667 NSPoint screenPoint = [nsWindow convertRectToScreen:(CGRect){ { windowCoord.x, windowCoord.y },
668 { 0, 0 } }].origin;
668 NSMenuItem *selectedItem = makeMenuItems_(menu, menuCommands, items, n); 669 NSMenuItem *selectedItem = makeMenuItems_(menu, menuCommands, items, n);
669 [menuCommands setSource:source]; 670 [menuCommands setSource:source];
670 if (isCentered) { 671 if (isCentered) {