We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1496

Summary: SDLView not created for a Cocoa window, resulting in missing right mouse clicks
Product: SDL Reporter: Lasse Öörni <loorni>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2 CC: buckyballreaction
Version: HG 2.0   
Hardware: x86   
OS: Mac OS X 10.6   

Description Lasse Öörni 2012-05-13 15:09:35 UTC
The check for whether a content view already exists in SDL_cocoawindow.m around line 534 prevents the SDLView being initially created and set as the window's content view. As the sole purpose of SDLView is to forward rightMouseDown events to the window listener, right mouse presses are no longer detected as a result.

On OS X 10.7 the default content view (NSView) also forwards the event, if there is no context menu defined, so the bug only affects 10.6 and earlier.
Comment 1 buckyballreaction 2012-09-14 15:32:19 UTC
I also affirm that there are no right mouse clicks on Mac OS X 10.5 (with SDL compiled for x86) and Mac OS X 10.6 (SDL compiled for x86_64)
Comment 2 buckyballreaction 2012-09-14 15:55:21 UTC
I just confirmed that reverting hg rev b91e7565e877 fixes this bug.  But that revision was a fix for bug #1303...
Comment 3 Sam Lantinga 2012-09-28 02:34:34 UTC
This should be fixed.  Thanks!
http://hg.libsdl.org/SDL/rev/31449ea8f934