{"action":"created","comment":{"url":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls/comments/53566557","id":53566557,"diff_hunk":"@@ -919,18 +922,35 @@ void WindowManager::MouseMoveEvent(const Point16 &pos)\n \tif (pos == this->mouse_pos) return;\n \tthis->mouse_pos = pos;\n \n+\t// TODO: add a MOUSE_BUTTON_DOWN mode, send events only to the window that\n+\t// was corrent at the time the mode began.\n \tswitch (this->mouse_mode) {\n \t\tcase WMMM_PASS_THROUGH: {\n+\t\t\t/* Compute position relative to window origin. */\n+\t\t\tPoint16 pos2;\n+\t\t\tif(this->current_window != nullptr)\n+\t\t\t{","path":"src/window.cpp","position":32,"original_position":32,"commit_id":"557cd1c392acaf50cf7dad365134b9098744775b","original_commit_id":"557cd1c392acaf50cf7dad365134b9098744775b","user":{"login":"CKraniak","id":6746064,"avatar_url":"https://avatars.githubusercontent.com/u/6746064?v=3","gravatar_id":"","url":"https://api.github.com/users/CKraniak","html_url":"https://github.com/CKraniak","followers_url":"https://api.github.com/users/CKraniak/followers","following_url":"https://api.github.com/users/CKraniak/following{/other_user}","gists_url":"https://api.github.com/users/CKraniak/gists{/gist_id}","starred_url":"https://api.github.com/users/CKraniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CKraniak/subscriptions","organizations_url":"https://api.github.com/users/CKraniak/orgs","repos_url":"https://api.github.com/users/CKraniak/repos","events_url":"https://api.github.com/users/CKraniak/events{/privacy}","received_events_url":"https://api.github.com/users/CKraniak/received_events","type":"User","site_admin":false},"body":"The open braces, right?","created_at":"2016-02-21T13:31:01Z","updated_at":"2016-02-21T13:31:01Z","html_url":"https://github.com/FreeRCT/FreeRCT/pull/136#discussion_r53566557","pull_request_url":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls/136","_links":{"self":{"href":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls/comments/53566557"},"html":{"href":"https://github.com/FreeRCT/FreeRCT/pull/136#discussion_r53566557"},"pull_request":{"href":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls/136"}}},"pull_request":{"url":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls/136","id":60072011,"html_url":"https://github.com/FreeRCT/FreeRCT/pull/136","diff_url":"https://github.com/FreeRCT/FreeRCT/pull/136.diff","patch_url":"https://github.com/FreeRCT/FreeRCT/pull/136.patch","issue_url":"https://api.github.com/repos/FreeRCT/FreeRCT/issues/136","number":136,"state":"open","locked":false,"title":"Add: Pan with GuiWindows open","user":{"login":"CKraniak","id":6746064,"avatar_url":"https://avatars.githubusercontent.com/u/6746064?v=3","gravatar_id":"","url":"https://api.github.com/users/CKraniak","html_url":"https://github.com/CKraniak","followers_url":"https://api.github.com/users/CKraniak/followers","following_url":"https://api.github.com/users/CKraniak/following{/other_user}","gists_url":"https://api.github.com/users/CKraniak/gists{/gist_id}","starred_url":"https://api.github.com/users/CKraniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CKraniak/subscriptions","organizations_url":"https://api.github.com/users/CKraniak/orgs","repos_url":"https://api.github.com/users/CKraniak/repos","events_url":"https://api.github.com/users/CKraniak/events{/privacy}","received_events_url":"https://api.github.com/users/CKraniak/received_events","type":"User","site_admin":false},"body":"Changes:\r\n\r\n - OnSelectorMoseMove() returns bool instead of void for all GuiWindows\r\n   - Return value tells whether the mouse event should fall through to the viewport if the mouse is on the viewport\r\n - Window manager gets new state: WMMM_MOUSE_DOWN\r\n   - State causes all mouse move events to get routed to the \"focus_holder\", the window where the mouse was first clicked on, until the mouse button is released\r\n - Point<T> now has operators\r\n - _palette[] has a second way to specify the color without using magic numbers\r\n   - This is used to remove the magic numbers in viewort.cpp\r\n - Changes to PathGui to make it work more intuitively:\r\n   - Right click still moves the viewport if it starts on a non-path\r\n   - Right click goes into a \"delete mode\" and does not move the viewport if you start the right-click on a path\r\n   - Fast mouse motion does not move the voxel highlight, nor does it cause a switch from \"move\" to \"destroy\" mode","created_at":"2016-02-21T03:53:00Z","updated_at":"2016-02-21T13:31:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bcf240117d0704aed6f7ee723d7478fca9cb349e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls/136/commits","review_comments_url":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls/136/comments","review_comment_url":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FreeRCT/FreeRCT/issues/136/comments","statuses_url":"https://api.github.com/repos/FreeRCT/FreeRCT/statuses/557cd1c392acaf50cf7dad365134b9098744775b","head":{"label":"CKraniak:pan-with-guiwindows-open","ref":"pan-with-guiwindows-open","sha":"557cd1c392acaf50cf7dad365134b9098744775b","user":{"login":"CKraniak","id":6746064,"avatar_url":"https://avatars.githubusercontent.com/u/6746064?v=3","gravatar_id":"","url":"https://api.github.com/users/CKraniak","html_url":"https://github.com/CKraniak","followers_url":"https://api.github.com/users/CKraniak/followers","following_url":"https://api.github.com/users/CKraniak/following{/other_user}","gists_url":"https://api.github.com/users/CKraniak/gists{/gist_id}","starred_url":"https://api.github.com/users/CKraniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CKraniak/subscriptions","organizations_url":"https://api.github.com/users/CKraniak/orgs","repos_url":"https://api.github.com/users/CKraniak/repos","events_url":"https://api.github.com/users/CKraniak/events{/privacy}","received_events_url":"https://api.github.com/users/CKraniak/received_events","type":"User","site_admin":false},"repo":{"id":51564651,"name":"FreeRCT","full_name":"CKraniak/FreeRCT","owner":{"login":"CKraniak","id":6746064,"avatar_url":"https://avatars.githubusercontent.com/u/6746064?v=3","gravatar_id":"","url":"https://api.github.com/users/CKraniak","html_url":"https://github.com/CKraniak","followers_url":"https://api.github.com/users/CKraniak/followers","following_url":"https://api.github.com/users/CKraniak/following{/other_user}","gists_url":"https://api.github.com/users/CKraniak/gists{/gist_id}","starred_url":"https://api.github.com/users/CKraniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CKraniak/subscriptions","organizations_url":"https://api.github.com/users/CKraniak/orgs","repos_url":"https://api.github.com/users/CKraniak/repos","events_url":"https://api.github.com/users/CKraniak/events{/privacy}","received_events_url":"https://api.github.com/users/CKraniak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CKraniak/FreeRCT","description":"FreeRCT aims to be a free and open source game which captures the look, feel and gameplay of the popular games RollerCoaster Tycoon 1 and 2.","fork":true,"url":"https://api.github.com/repos/CKraniak/FreeRCT","forks_url":"https://api.github.com/repos/CKraniak/FreeRCT/forks","keys_url":"https://api.github.com/repos/CKraniak/FreeRCT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CKraniak/FreeRCT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CKraniak/FreeRCT/teams","hooks_url":"https://api.github.com/repos/CKraniak/FreeRCT/hooks","issue_events_url":"https://api.github.com/repos/CKraniak/FreeRCT/issues/events{/number}","events_url":"https://api.github.com/repos/CKraniak/FreeRCT/events","assignees_url":"https://api.github.com/repos/CKraniak/FreeRCT/assignees{/user}","branches_url":"https://api.github.com/repos/CKraniak/FreeRCT/branches{/branch}","tags_url":"https://api.github.com/repos/CKraniak/FreeRCT/tags","blobs_url":"https://api.github.com/repos/CKraniak/FreeRCT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CKraniak/FreeRCT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CKraniak/FreeRCT/git/refs{/sha}","trees_url":"https://api.github.com/repos/CKraniak/FreeRCT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CKraniak/FreeRCT/statuses/{sha}","languages_url":"https://api.github.com/repos/CKraniak/FreeRCT/languages","stargazers_url":"https://api.github.com/repos/CKraniak/FreeRCT/stargazers","contributors_url":"https://api.github.com/repos/CKraniak/FreeRCT/contributors","subscribers_url":"https://api.github.com/repos/CKraniak/FreeRCT/subscribers","subscription_url":"https://api.github.com/repos/CKraniak/FreeRCT/subscription","commits_url":"https://api.github.com/repos/CKraniak/FreeRCT/commits{/sha}","git_commits_url":"https://api.github.com/repos/CKraniak/FreeRCT/git/commits{/sha}","comments_url":"https://api.github.com/repos/CKraniak/FreeRCT/comments{/number}","issue_comment_url":"https://api.github.com/repos/CKraniak/FreeRCT/issues/comments{/number}","contents_url":"https://api.github.com/repos/CKraniak/FreeRCT/contents/{+path}","compare_url":"https://api.github.com/repos/CKraniak/FreeRCT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CKraniak/FreeRCT/merges","archive_url":"https://api.github.com/repos/CKraniak/FreeRCT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CKraniak/FreeRCT/downloads","issues_url":"https://api.github.com/repos/CKraniak/FreeRCT/issues{/number}","pulls_url":"https://api.github.com/repos/CKraniak/FreeRCT/pulls{/number}","milestones_url":"https://api.github.com/repos/CKraniak/FreeRCT/milestones{/number}","notifications_url":"https://api.github.com/repos/CKraniak/FreeRCT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CKraniak/FreeRCT/labels{/name}","releases_url":"https://api.github.com/repos/CKraniak/FreeRCT/releases{/id}","deployments_url":"https://api.github.com/repos/CKraniak/FreeRCT/deployments","created_at":"2016-02-12T03:18:48Z","updated_at":"2016-02-12T03:18:52Z","pushed_at":"2016-02-21T04:14:01Z","git_url":"git://github.com/CKraniak/FreeRCT.git","ssh_url":"git@github.com:CKraniak/FreeRCT.git","clone_url":"https://github.com/CKraniak/FreeRCT.git","svn_url":"https://github.com/CKraniak/FreeRCT","homepage":"http://freerct.org","size":108411,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":false,"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":"FreeRCT:master","ref":"master","sha":"14de71383d72bdebae4f4a107b8a5f47e0046856","user":{"login":"FreeRCT","id":6085556,"avatar_url":"https://avatars.githubusercontent.com/u/6085556?v=3","gravatar_id":"","url":"https://api.github.com/users/FreeRCT","html_url":"https://github.com/FreeRCT","followers_url":"https://api.github.com/users/FreeRCT/followers","following_url":"https://api.github.com/users/FreeRCT/following{/other_user}","gists_url":"https://api.github.com/users/FreeRCT/gists{/gist_id}","starred_url":"https://api.github.com/users/FreeRCT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FreeRCT/subscriptions","organizations_url":"https://api.github.com/users/FreeRCT/orgs","repos_url":"https://api.github.com/users/FreeRCT/repos","events_url":"https://api.github.com/users/FreeRCT/events{/privacy}","received_events_url":"https://api.github.com/users/FreeRCT/received_events","type":"Organization","site_admin":false},"repo":{"id":32340929,"name":"FreeRCT","full_name":"FreeRCT/FreeRCT","owner":{"login":"FreeRCT","id":6085556,"avatar_url":"https://avatars.githubusercontent.com/u/6085556?v=3","gravatar_id":"","url":"https://api.github.com/users/FreeRCT","html_url":"https://github.com/FreeRCT","followers_url":"https://api.github.com/users/FreeRCT/followers","following_url":"https://api.github.com/users/FreeRCT/following{/other_user}","gists_url":"https://api.github.com/users/FreeRCT/gists{/gist_id}","starred_url":"https://api.github.com/users/FreeRCT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FreeRCT/subscriptions","organizations_url":"https://api.github.com/users/FreeRCT/orgs","repos_url":"https://api.github.com/users/FreeRCT/repos","events_url":"https://api.github.com/users/FreeRCT/events{/privacy}","received_events_url":"https://api.github.com/users/FreeRCT/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FreeRCT/FreeRCT","description":"FreeRCT aims to be a free and open source game which captures the look, feel and gameplay of the popular games RollerCoaster Tycoon 1 and 2.","fork":false,"url":"https://api.github.com/repos/FreeRCT/FreeRCT","forks_url":"https://api.github.com/repos/FreeRCT/FreeRCT/forks","keys_url":"https://api.github.com/repos/FreeRCT/FreeRCT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FreeRCT/FreeRCT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FreeRCT/FreeRCT/teams","hooks_url":"https://api.github.com/repos/FreeRCT/FreeRCT/hooks","issue_events_url":"https://api.github.com/repos/FreeRCT/FreeRCT/issues/events{/number}","events_url":"https://api.github.com/repos/FreeRCT/FreeRCT/events","assignees_url":"https://api.github.com/repos/FreeRCT/FreeRCT/assignees{/user}","branches_url":"https://api.github.com/repos/FreeRCT/FreeRCT/branches{/branch}","tags_url":"https://api.github.com/repos/FreeRCT/FreeRCT/tags","blobs_url":"https://api.github.com/repos/FreeRCT/FreeRCT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FreeRCT/FreeRCT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FreeRCT/FreeRCT/git/refs{/sha}","trees_url":"https://api.github.com/repos/FreeRCT/FreeRCT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FreeRCT/FreeRCT/statuses/{sha}","languages_url":"https://api.github.com/repos/FreeRCT/FreeRCT/languages","stargazers_url":"https://api.github.com/repos/FreeRCT/FreeRCT/stargazers","contributors_url":"https://api.github.com/repos/FreeRCT/FreeRCT/contributors","subscribers_url":"https://api.github.com/repos/FreeRCT/FreeRCT/subscribers","subscription_url":"https://api.github.com/repos/FreeRCT/FreeRCT/subscription","commits_url":"https://api.github.com/repos/FreeRCT/FreeRCT/commits{/sha}","git_commits_url":"https://api.github.com/repos/FreeRCT/FreeRCT/git/commits{/sha}","comments_url":"https://api.github.com/repos/FreeRCT/FreeRCT/comments{/number}","issue_comment_url":"https://api.github.com/repos/FreeRCT/FreeRCT/issues/comments{/number}","contents_url":"https://api.github.com/repos/FreeRCT/FreeRCT/contents/{+path}","compare_url":"https://api.github.com/repos/FreeRCT/FreeRCT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FreeRCT/FreeRCT/merges","archive_url":"https://api.github.com/repos/FreeRCT/FreeRCT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FreeRCT/FreeRCT/downloads","issues_url":"https://api.github.com/repos/FreeRCT/FreeRCT/issues{/number}","pulls_url":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls{/number}","milestones_url":"https://api.github.com/repos/FreeRCT/FreeRCT/milestones{/number}","notifications_url":"https://api.github.com/repos/FreeRCT/FreeRCT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FreeRCT/FreeRCT/labels{/name}","releases_url":"https://api.github.com/repos/FreeRCT/FreeRCT/releases{/id}","deployments_url":"https://api.github.com/repos/FreeRCT/FreeRCT/deployments","created_at":"2015-03-16T17:19:15Z","updated_at":"2016-02-19T20:50:02Z","pushed_at":"2016-02-21T03:53:00Z","git_url":"git://github.com/FreeRCT/FreeRCT.git","ssh_url":"git@github.com:FreeRCT/FreeRCT.git","clone_url":"https://github.com/FreeRCT/FreeRCT.git","svn_url":"https://github.com/FreeRCT/FreeRCT","homepage":"http://freerct.org","size":109561,"stargazers_count":114,"watchers_count":114,"language":"C++","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":15,"mirror_url":null,"open_issues_count":18,"forks":15,"open_issues":18,"watchers":114,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls/136"},"html":{"href":"https://github.com/FreeRCT/FreeRCT/pull/136"},"issue":{"href":"https://api.github.com/repos/FreeRCT/FreeRCT/issues/136"},"comments":{"href":"https://api.github.com/repos/FreeRCT/FreeRCT/issues/136/comments"},"review_comments":{"href":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls/136/comments"},"review_comment":{"href":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FreeRCT/FreeRCT/pulls/136/commits"},"statuses":{"href":"https://api.github.com/repos/FreeRCT/FreeRCT/statuses/557cd1c392acaf50cf7dad365134b9098744775b"}}}}