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 - SDL_CreateFromWidow duplicates window (Cocoa only)
Summary: SDL_CreateFromWidow duplicates window (Cocoa only)
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86_64 Mac OS X (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-09 04:47 UTC by Jens Köhler
Modified: 2012-01-07 21:40 UTC (History)
0 users

See Also:


Attachments
Patch (903 bytes, application/octet-stream)
2011-09-09 04:48 UTC, Jens Köhler
Details

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