summaryrefslogtreecommitdiff
path: root/src/macos.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/macos.m')
-rw-r--r--src/macos.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/macos.m b/src/macos.m
index 53a6da00..78b964ae 100644
--- a/src/macos.m
+++ b/src/macos.m
@@ -673,8 +673,9 @@ void showPopupMenu_MacOS(iWidget *source, iInt2 windowCoord, const iMenuItem *it
673 [menu release]; 673 [menu release];
674 [menuCommands release]; 674 [menuCommands release];
675 /* The right mouse button has now been released so let SDL know about it. The button up event 675 /* The right mouse button has now been released so let SDL know about it. The button up event
676 was consumed by the popup menu so it got never passed to SDL. */ 676 was consumed by the popup menu so it got never passed to SDL. Same goes for possible
677 SEL sel = NSSelectorFromString(@"syncMouseButtonState"); /* custom method */ 677 keyboard modifiers that were held down when the menu appeared. */
678 SEL sel = NSSelectorFromString(@"syncMouseButtonAndKeyboardModifierState"); /* custom method */
678 if ([[nsWindow delegate] respondsToSelector:sel]) { 679 if ([[nsWindow delegate] respondsToSelector:sel]) {
679 NSInvocation *call = [NSInvocation invocationWithMethodSignature: 680 NSInvocation *call = [NSInvocation invocationWithMethodSignature:
680 [NSMethodSignature signatureWithObjCTypes:"v@:"]]; 681 [NSMethodSignature signatureWithObjCTypes:"v@:"]];