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 1372 - OSX Window Maximize/Resize Doesn't Update Window Position (with Patch)
Summary: OSX Window Maximize/Resize Doesn't Update Window Position (with Patch)
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86_64 Mac OS X 10.7
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-15 14:20 UTC by Alex Nankervis
Modified: 2012-01-18 19:23 UTC (History)
1 user (show)

See Also:


Attachments
diff (1.02 KB, application/octet-stream)
2012-01-15 14:20 UTC, Alex Nankervis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Nankervis 2012-01-15 14:20:01 UTC
Created attachment 773 [details]
diff

SDL_cocoawindow.m, windowDidResize needs to also send a window move event. Depending on the corner you resize a window from, or when maximizing a window, the window position will change. Discovered this when creating a maximized window and found that the window position was stuck at the un-maximized window's value.

Diff with fix attached.
Comment 1 Sam Lantinga 2012-01-18 19:23:56 UTC
Fixed, thanks!
http://hg.libsdl.org/SDL/rev/5eecf59b698f