src/video/cocoa/SDL_cocoawindow.m
changeset 5379 78c071fe4c37
parent 5378 738a96883fa6
child 5380 2de85077eb0b
--- a/src/video/cocoa/SDL_cocoawindow.m	Mon Feb 21 20:35:44 2011 -0800
+++ b/src/video/cocoa/SDL_cocoawindow.m	Mon Feb 21 21:32:11 2011 -0800
@@ -436,7 +436,9 @@
 }
 @end
 
-@interface SDLView : NSView { }
+@interface SDLView : NSView
+/* The default implementation doesn't pass rightMouseDown to responder chain */
+- (void)rightMouseDown:(NSEvent *)theEvent;
 @end
 
 @implementation SDLView
@@ -598,7 +600,7 @@
             rect.origin.y -= screenRect.origin.y;
         }
     }
-    nswindow = [[SDLWindow alloc] initWithContentRect:rect styleMask:style backing:NSBackingStoreBuffered defer:FALSE screen:screen];
+    nswindow = [[SDLWindow alloc] initWithContentRect:rect styleMask:style backing:NSBackingStoreBuffered defer:YES screen:screen];
 
     [pool release];