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 1303

Summary: SDL_CreateFromWidow duplicates window (Cocoa only)
Product: SDL Reporter: Jens Köhler <jens.koehler>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: x86_64   
OS: Mac OS X (All)   
Attachments: Patch

Description Jens Köhler 2011-09-09 04:47:40 UTC
When calling SDL_CreateWindowFrom with a NSWindow which already contains a NSView, the window will be duplicated because another NSView is added. I attached a possible fix that prevents the creation of a second NSView.
Comment 1 Jens Köhler 2011-09-09 04:48:08 UTC
Created attachment 701 [details]
Patch
Comment 2 Sam Lantinga 2012-01-07 21:40:08 UTC
Fixed, thanks!
http://hg.libsdl.org/SDL/rev/b91e7565e877