{"action":"created","comment":{"url":"https://api.github.com/repos/cinder/Cinder/pulls/comments/27774009","id":27774009,"diff_hunk":"@@ -628,9 +628,21 @@ - (void)resize\n \tNSSize nsSize = [mCinderView frame].size;\n \tmSize = cinder::ivec2( nsSize.width, nsSize.height );\n \n+\tNSRect frame = [mWin frame];\n+\tNSRect content = [mWin contentRectForFrameRect:frame];\n+\t\n+\tivec2 prevPos = mPos;\t\n+\tmPos = ivec2( content.origin.x, [[[NSScreen screens] objectAtIndex:0] frame].size.height - frame.origin.y - content.size.height );","path":"src/cinder/app/cocoa/AppImplMac.mm","position":8,"original_position":8,"commit_id":"ec596f01254850515ed3cfd6135a6fee2d8d8594","original_commit_id":"ec596f01254850515ed3cfd6135a6fee2d8d8594","user":{"login":"pizthewiz","id":648369,"avatar_url":"https://avatars.githubusercontent.com/u/648369?v=3","gravatar_id":"","url":"https://api.github.com/users/pizthewiz","html_url":"https://github.com/pizthewiz","followers_url":"https://api.github.com/users/pizthewiz/followers","following_url":"https://api.github.com/users/pizthewiz/following{/other_user}","gists_url":"https://api.github.com/users/pizthewiz/gists{/gist_id}","starred_url":"https://api.github.com/users/pizthewiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pizthewiz/subscriptions","organizations_url":"https://api.github.com/users/pizthewiz/orgs","repos_url":"https://api.github.com/users/pizthewiz/repos","events_url":"https://api.github.com/users/pizthewiz/events{/privacy}","received_events_url":"https://api.github.com/users/pizthewiz/received_events","type":"User","site_admin":false},"body":"Hmm, doesn't this assume that the window is on the first screen? It might be a better idea to get the screen from the window's `screen` property and the `NSGeometry.h` functions might be helpful too:\r\n```Objective-C\r\nmPos = ivec2( NSMinX( content ), NSHeight( mWin.screen.frame ) - NSMinY( frame ) - NSHeight( content ) );\r\n```","created_at":"2015-04-05T01:46:28Z","updated_at":"2015-04-05T01:46:28Z","html_url":"https://github.com/cinder/Cinder/pull/807#discussion_r27774009","pull_request_url":"https://api.github.com/repos/cinder/Cinder/pulls/807","_links":{"self":{"href":"https://api.github.com/repos/cinder/Cinder/pulls/comments/27774009"},"html":{"href":"https://github.com/cinder/Cinder/pull/807#discussion_r27774009"},"pull_request":{"href":"https://api.github.com/repos/cinder/Cinder/pulls/807"}}},"pull_request":{"url":"https://api.github.com/repos/cinder/Cinder/pulls/807","id":32642352,"html_url":"https://github.com/cinder/Cinder/pull/807","diff_url":"https://github.com/cinder/Cinder/pull/807.diff","patch_url":"https://github.com/cinder/Cinder/pull/807.patch","issue_url":"https://api.github.com/repos/cinder/Cinder/issues/807","number":807,"state":"open","locked":false,"title":"Update AppImplMac.mm","user":{"login":"lithium-snepo","id":959050,"avatar_url":"https://avatars.githubusercontent.com/u/959050?v=3","gravatar_id":"","url":"https://api.github.com/users/lithium-snepo","html_url":"https://github.com/lithium-snepo","followers_url":"https://api.github.com/users/lithium-snepo/followers","following_url":"https://api.github.com/users/lithium-snepo/following{/other_user}","gists_url":"https://api.github.com/users/lithium-snepo/gists{/gist_id}","starred_url":"https://api.github.com/users/lithium-snepo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lithium-snepo/subscriptions","organizations_url":"https://api.github.com/users/lithium-snepo/orgs","repos_url":"https://api.github.com/users/lithium-snepo/repos","events_url":"https://api.github.com/users/lithium-snepo/events{/privacy}","received_events_url":"https://api.github.com/users/lithium-snepo/received_events","type":"User","site_admin":false},"body":"addresses https://github.com/cinder/Cinder/issues/635 on osx where the window position isn't updated when resizing from the top left","created_at":"2015-04-05T01:16:15Z","updated_at":"2015-04-05T01:46:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa2eef6013bb413bd0549ebaf3898c509d383417","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cinder/Cinder/pulls/807/commits","review_comments_url":"https://api.github.com/repos/cinder/Cinder/pulls/807/comments","review_comment_url":"https://api.github.com/repos/cinder/Cinder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cinder/Cinder/issues/807/comments","statuses_url":"https://api.github.com/repos/cinder/Cinder/statuses/ec596f01254850515ed3cfd6135a6fee2d8d8594","head":{"label":"lithium-snepo:patch-1","ref":"patch-1","sha":"ec596f01254850515ed3cfd6135a6fee2d8d8594","user":{"login":"lithium-snepo","id":959050,"avatar_url":"https://avatars.githubusercontent.com/u/959050?v=3","gravatar_id":"","url":"https://api.github.com/users/lithium-snepo","html_url":"https://github.com/lithium-snepo","followers_url":"https://api.github.com/users/lithium-snepo/followers","following_url":"https://api.github.com/users/lithium-snepo/following{/other_user}","gists_url":"https://api.github.com/users/lithium-snepo/gists{/gist_id}","starred_url":"https://api.github.com/users/lithium-snepo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lithium-snepo/subscriptions","organizations_url":"https://api.github.com/users/lithium-snepo/orgs","repos_url":"https://api.github.com/users/lithium-snepo/repos","events_url":"https://api.github.com/users/lithium-snepo/events{/privacy}","received_events_url":"https://api.github.com/users/lithium-snepo/received_events","type":"User","site_admin":false},"repo":{"id":33426144,"name":"Cinder","full_name":"lithium-snepo/Cinder","owner":{"login":"lithium-snepo","id":959050,"avatar_url":"https://avatars.githubusercontent.com/u/959050?v=3","gravatar_id":"","url":"https://api.github.com/users/lithium-snepo","html_url":"https://github.com/lithium-snepo","followers_url":"https://api.github.com/users/lithium-snepo/followers","following_url":"https://api.github.com/users/lithium-snepo/following{/other_user}","gists_url":"https://api.github.com/users/lithium-snepo/gists{/gist_id}","starred_url":"https://api.github.com/users/lithium-snepo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lithium-snepo/subscriptions","organizations_url":"https://api.github.com/users/lithium-snepo/orgs","repos_url":"https://api.github.com/users/lithium-snepo/repos","events_url":"https://api.github.com/users/lithium-snepo/events{/privacy}","received_events_url":"https://api.github.com/users/lithium-snepo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lithium-snepo/Cinder","description":"Cinder is a community-developed, free and open source library for professional-quality creative coding in C++.","fork":true,"url":"https://api.github.com/repos/lithium-snepo/Cinder","forks_url":"https://api.github.com/repos/lithium-snepo/Cinder/forks","keys_url":"https://api.github.com/repos/lithium-snepo/Cinder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lithium-snepo/Cinder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lithium-snepo/Cinder/teams","hooks_url":"https://api.github.com/repos/lithium-snepo/Cinder/hooks","issue_events_url":"https://api.github.com/repos/lithium-snepo/Cinder/issues/events{/number}","events_url":"https://api.github.com/repos/lithium-snepo/Cinder/events","assignees_url":"https://api.github.com/repos/lithium-snepo/Cinder/assignees{/user}","branches_url":"https://api.github.com/repos/lithium-snepo/Cinder/branches{/branch}","tags_url":"https://api.github.com/repos/lithium-snepo/Cinder/tags","blobs_url":"https://api.github.com/repos/lithium-snepo/Cinder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lithium-snepo/Cinder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lithium-snepo/Cinder/git/refs{/sha}","trees_url":"https://api.github.com/repos/lithium-snepo/Cinder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lithium-snepo/Cinder/statuses/{sha}","languages_url":"https://api.github.com/repos/lithium-snepo/Cinder/languages","stargazers_url":"https://api.github.com/repos/lithium-snepo/Cinder/stargazers","contributors_url":"https://api.github.com/repos/lithium-snepo/Cinder/contributors","subscribers_url":"https://api.github.com/repos/lithium-snepo/Cinder/subscribers","subscription_url":"https://api.github.com/repos/lithium-snepo/Cinder/subscription","commits_url":"https://api.github.com/repos/lithium-snepo/Cinder/commits{/sha}","git_commits_url":"https://api.github.com/repos/lithium-snepo/Cinder/git/commits{/sha}","comments_url":"https://api.github.com/repos/lithium-snepo/Cinder/comments{/number}","issue_comment_url":"https://api.github.com/repos/lithium-snepo/Cinder/issues/comments{/number}","contents_url":"https://api.github.com/repos/lithium-snepo/Cinder/contents/{+path}","compare_url":"https://api.github.com/repos/lithium-snepo/Cinder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lithium-snepo/Cinder/merges","archive_url":"https://api.github.com/repos/lithium-snepo/Cinder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lithium-snepo/Cinder/downloads","issues_url":"https://api.github.com/repos/lithium-snepo/Cinder/issues{/number}","pulls_url":"https://api.github.com/repos/lithium-snepo/Cinder/pulls{/number}","milestones_url":"https://api.github.com/repos/lithium-snepo/Cinder/milestones{/number}","notifications_url":"https://api.github.com/repos/lithium-snepo/Cinder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lithium-snepo/Cinder/labels{/name}","releases_url":"https://api.github.com/repos/lithium-snepo/Cinder/releases{/id}","created_at":"2015-04-05T01:14:43Z","updated_at":"2015-04-05T01:15:02Z","pushed_at":"2015-04-05T01:15:37Z","git_url":"git://github.com/lithium-snepo/Cinder.git","ssh_url":"git@github.com:lithium-snepo/Cinder.git","clone_url":"https://github.com/lithium-snepo/Cinder.git","svn_url":"https://github.com/lithium-snepo/Cinder","homepage":"http://libcinder.org","size":322674,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cinder:glNext","ref":"glNext","sha":"f284c2bb42a60255b70cf24c2c512ea22d8dce04","user":{"login":"cinder","id":154586,"avatar_url":"https://avatars.githubusercontent.com/u/154586?v=3","gravatar_id":"","url":"https://api.github.com/users/cinder","html_url":"https://github.com/cinder","followers_url":"https://api.github.com/users/cinder/followers","following_url":"https://api.github.com/users/cinder/following{/other_user}","gists_url":"https://api.github.com/users/cinder/gists{/gist_id}","starred_url":"https://api.github.com/users/cinder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cinder/subscriptions","organizations_url":"https://api.github.com/users/cinder/orgs","repos_url":"https://api.github.com/users/cinder/repos","events_url":"https://api.github.com/users/cinder/events{/privacy}","received_events_url":"https://api.github.com/users/cinder/received_events","type":"User","site_admin":false},"repo":{"id":622127,"name":"Cinder","full_name":"cinder/Cinder","owner":{"login":"cinder","id":154586,"avatar_url":"https://avatars.githubusercontent.com/u/154586?v=3","gravatar_id":"","url":"https://api.github.com/users/cinder","html_url":"https://github.com/cinder","followers_url":"https://api.github.com/users/cinder/followers","following_url":"https://api.github.com/users/cinder/following{/other_user}","gists_url":"https://api.github.com/users/cinder/gists{/gist_id}","starred_url":"https://api.github.com/users/cinder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cinder/subscriptions","organizations_url":"https://api.github.com/users/cinder/orgs","repos_url":"https://api.github.com/users/cinder/repos","events_url":"https://api.github.com/users/cinder/events{/privacy}","received_events_url":"https://api.github.com/users/cinder/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cinder/Cinder","description":"Cinder is a community-developed, free and open source library for professional-quality creative coding in C++.","fork":false,"url":"https://api.github.com/repos/cinder/Cinder","forks_url":"https://api.github.com/repos/cinder/Cinder/forks","keys_url":"https://api.github.com/repos/cinder/Cinder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cinder/Cinder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cinder/Cinder/teams","hooks_url":"https://api.github.com/repos/cinder/Cinder/hooks","issue_events_url":"https://api.github.com/repos/cinder/Cinder/issues/events{/number}","events_url":"https://api.github.com/repos/cinder/Cinder/events","assignees_url":"https://api.github.com/repos/cinder/Cinder/assignees{/user}","branches_url":"https://api.github.com/repos/cinder/Cinder/branches{/branch}","tags_url":"https://api.github.com/repos/cinder/Cinder/tags","blobs_url":"https://api.github.com/repos/cinder/Cinder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cinder/Cinder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cinder/Cinder/git/refs{/sha}","trees_url":"https://api.github.com/repos/cinder/Cinder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cinder/Cinder/statuses/{sha}","languages_url":"https://api.github.com/repos/cinder/Cinder/languages","stargazers_url":"https://api.github.com/repos/cinder/Cinder/stargazers","contributors_url":"https://api.github.com/repos/cinder/Cinder/contributors","subscribers_url":"https://api.github.com/repos/cinder/Cinder/subscribers","subscription_url":"https://api.github.com/repos/cinder/Cinder/subscription","commits_url":"https://api.github.com/repos/cinder/Cinder/commits{/sha}","git_commits_url":"https://api.github.com/repos/cinder/Cinder/git/commits{/sha}","comments_url":"https://api.github.com/repos/cinder/Cinder/comments{/number}","issue_comment_url":"https://api.github.com/repos/cinder/Cinder/issues/comments{/number}","contents_url":"https://api.github.com/repos/cinder/Cinder/contents/{+path}","compare_url":"https://api.github.com/repos/cinder/Cinder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cinder/Cinder/merges","archive_url":"https://api.github.com/repos/cinder/Cinder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cinder/Cinder/downloads","issues_url":"https://api.github.com/repos/cinder/Cinder/issues{/number}","pulls_url":"https://api.github.com/repos/cinder/Cinder/pulls{/number}","milestones_url":"https://api.github.com/repos/cinder/Cinder/milestones{/number}","notifications_url":"https://api.github.com/repos/cinder/Cinder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cinder/Cinder/labels{/name}","releases_url":"https://api.github.com/repos/cinder/Cinder/releases{/id}","created_at":"2010-04-21T19:03:10Z","updated_at":"2015-04-04T22:32:17Z","pushed_at":"2015-04-05T01:16:15Z","git_url":"git://github.com/cinder/Cinder.git","ssh_url":"git@github.com:cinder/Cinder.git","clone_url":"https://github.com/cinder/Cinder.git","svn_url":"https://github.com/cinder/Cinder","homepage":"http://libcinder.org","size":322674,"stargazers_count":1951,"watchers_count":1951,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":468,"mirror_url":null,"open_issues_count":154,"forks":468,"open_issues":154,"watchers":1951,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cinder/Cinder/pulls/807"},"html":{"href":"https://github.com/cinder/Cinder/pull/807"},"issue":{"href":"https://api.github.com/repos/cinder/Cinder/issues/807"},"comments":{"href":"https://api.github.com/repos/cinder/Cinder/issues/807/comments"},"review_comments":{"href":"https://api.github.com/repos/cinder/Cinder/pulls/807/comments"},"review_comment":{"href":"https://api.github.com/repos/cinder/Cinder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cinder/Cinder/pulls/807/commits"},"statuses":{"href":"https://api.github.com/repos/cinder/Cinder/statuses/ec596f01254850515ed3cfd6135a6fee2d8d8594"}}}}