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 - SDLView not created for a Cocoa window, resulting in missing right mouse clicks
Summary: SDLView not created for a Cocoa window, resulting in missing right mouse clicks
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: HG 2.0
Hardware: x86 Mac OS X 10.6
: P2 major
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-13 15:09 UTC by Lasse Öörni
Modified: 2012-09-28 02:34 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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