{"action":"created","comment":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/pulls/comments/43465201","id":43465201,"diff_hunk":"@@ -159,13 +159,18 @@ function layout.apply(layout, windowTitleComparator)\n                 display = _row[3]()\n             elseif fnutils.contains(screen.allScreens(), _row[3]) then\n                 display = _row[3]\n+            else\n+                -- Default to the main screen if the passed-in screen isn't found; useful for\n+                -- layouts activated using the screen watcher, meaning that screens in layouts may\n+                -- not be in the current screen configuration.\n+                display = screen.allScreens()[1]\n             end\n         else\n             display = screen.allScreens()[1]","path":"extensions/layout/init.lua","position":null,"original_position":11,"commit_id":"84dbe8ca2d85f67a1a95097fdd48242a41cbcfb2","original_commit_id":"e23471d836bcded45f8c0757a65f1311518f8aa2","user":{"login":"cmsj","id":353427,"avatar_url":"https://avatars.githubusercontent.com/u/353427?v=3","gravatar_id":"","url":"https://api.github.com/users/cmsj","html_url":"https://github.com/cmsj","followers_url":"https://api.github.com/users/cmsj/followers","following_url":"https://api.github.com/users/cmsj/following{/other_user}","gists_url":"https://api.github.com/users/cmsj/gists{/gist_id}","starred_url":"https://api.github.com/users/cmsj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmsj/subscriptions","organizations_url":"https://api.github.com/users/cmsj/orgs","repos_url":"https://api.github.com/users/cmsj/repos","events_url":"https://api.github.com/users/cmsj/events{/privacy}","received_events_url":"https://api.github.com/users/cmsj/received_events","type":"User","site_admin":false},"body":"Good point, thanks!","created_at":"2015-10-30T01:49:05Z","updated_at":"2015-10-30T01:49:05Z","html_url":"https://github.com/Hammerspoon/hammerspoon/pull/614#discussion_r43465201","pull_request_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/pulls/614","_links":{"self":{"href":"https://api.github.com/repos/Hammerspoon/hammerspoon/pulls/comments/43465201"},"html":{"href":"https://github.com/Hammerspoon/hammerspoon/pull/614#discussion_r43465201"},"pull_request":{"href":"https://api.github.com/repos/Hammerspoon/hammerspoon/pulls/614"}}},"pull_request":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/pulls/614","id":48151982,"html_url":"https://github.com/Hammerspoon/hammerspoon/pull/614","diff_url":"https://github.com/Hammerspoon/hammerspoon/pull/614.diff","patch_url":"https://github.com/Hammerspoon/hammerspoon/pull/614.patch","issue_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/614","number":614,"state":"open","locked":false,"title":"Tweaks to the layout module:","user":{"login":"ravasthi","id":83881,"avatar_url":"https://avatars.githubusercontent.com/u/83881?v=3","gravatar_id":"","url":"https://api.github.com/users/ravasthi","html_url":"https://github.com/ravasthi","followers_url":"https://api.github.com/users/ravasthi/followers","following_url":"https://api.github.com/users/ravasthi/following{/other_user}","gists_url":"https://api.github.com/users/ravasthi/gists{/gist_id}","starred_url":"https://api.github.com/users/ravasthi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravasthi/subscriptions","organizations_url":"https://api.github.com/users/ravasthi/orgs","repos_url":"https://api.github.com/users/ravasthi/repos","events_url":"https://api.github.com/users/ravasthi/events{/privacy}","received_events_url":"https://api.github.com/users/ravasthi/received_events","type":"User","site_admin":false},"body":"* Default to the main screen if the passed-in screen isn't found; useful for layouts activated using the screen watcher, meaning that screens in layouts may not be in the current screen configuration.\r\n* Correct the print statement for \"Unable to find display: \"; the concat will only work with strings and numbers, and if a table or function is passed in there, the print craps out and throws a misleading error message.","created_at":"2015-10-20T03:06:19Z","updated_at":"2015-10-30T01:49:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dce89d352fc96824a569d54eb1fdaaf4e992c705","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/pulls/614/commits","review_comments_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/pulls/614/comments","review_comment_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/614/comments","statuses_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/statuses/84dbe8ca2d85f67a1a95097fdd48242a41cbcfb2","head":{"label":"ravasthi:layout-module-tweaks","ref":"layout-module-tweaks","sha":"84dbe8ca2d85f67a1a95097fdd48242a41cbcfb2","user":{"login":"ravasthi","id":83881,"avatar_url":"https://avatars.githubusercontent.com/u/83881?v=3","gravatar_id":"","url":"https://api.github.com/users/ravasthi","html_url":"https://github.com/ravasthi","followers_url":"https://api.github.com/users/ravasthi/followers","following_url":"https://api.github.com/users/ravasthi/following{/other_user}","gists_url":"https://api.github.com/users/ravasthi/gists{/gist_id}","starred_url":"https://api.github.com/users/ravasthi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravasthi/subscriptions","organizations_url":"https://api.github.com/users/ravasthi/orgs","repos_url":"https://api.github.com/users/ravasthi/repos","events_url":"https://api.github.com/users/ravasthi/events{/privacy}","received_events_url":"https://api.github.com/users/ravasthi/received_events","type":"User","site_admin":false},"repo":{"id":44578009,"name":"hammerspoon","full_name":"ravasthi/hammerspoon","owner":{"login":"ravasthi","id":83881,"avatar_url":"https://avatars.githubusercontent.com/u/83881?v=3","gravatar_id":"","url":"https://api.github.com/users/ravasthi","html_url":"https://github.com/ravasthi","followers_url":"https://api.github.com/users/ravasthi/followers","following_url":"https://api.github.com/users/ravasthi/following{/other_user}","gists_url":"https://api.github.com/users/ravasthi/gists{/gist_id}","starred_url":"https://api.github.com/users/ravasthi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravasthi/subscriptions","organizations_url":"https://api.github.com/users/ravasthi/orgs","repos_url":"https://api.github.com/users/ravasthi/repos","events_url":"https://api.github.com/users/ravasthi/events{/privacy}","received_events_url":"https://api.github.com/users/ravasthi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ravasthi/hammerspoon","description":"Staggeringly powerful OS X desktop automation with Lua","fork":true,"url":"https://api.github.com/repos/ravasthi/hammerspoon","forks_url":"https://api.github.com/repos/ravasthi/hammerspoon/forks","keys_url":"https://api.github.com/repos/ravasthi/hammerspoon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ravasthi/hammerspoon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ravasthi/hammerspoon/teams","hooks_url":"https://api.github.com/repos/ravasthi/hammerspoon/hooks","issue_events_url":"https://api.github.com/repos/ravasthi/hammerspoon/issues/events{/number}","events_url":"https://api.github.com/repos/ravasthi/hammerspoon/events","assignees_url":"https://api.github.com/repos/ravasthi/hammerspoon/assignees{/user}","branches_url":"https://api.github.com/repos/ravasthi/hammerspoon/branches{/branch}","tags_url":"https://api.github.com/repos/ravasthi/hammerspoon/tags","blobs_url":"https://api.github.com/repos/ravasthi/hammerspoon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ravasthi/hammerspoon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ravasthi/hammerspoon/git/refs{/sha}","trees_url":"https://api.github.com/repos/ravasthi/hammerspoon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ravasthi/hammerspoon/statuses/{sha}","languages_url":"https://api.github.com/repos/ravasthi/hammerspoon/languages","stargazers_url":"https://api.github.com/repos/ravasthi/hammerspoon/stargazers","contributors_url":"https://api.github.com/repos/ravasthi/hammerspoon/contributors","subscribers_url":"https://api.github.com/repos/ravasthi/hammerspoon/subscribers","subscription_url":"https://api.github.com/repos/ravasthi/hammerspoon/subscription","commits_url":"https://api.github.com/repos/ravasthi/hammerspoon/commits{/sha}","git_commits_url":"https://api.github.com/repos/ravasthi/hammerspoon/git/commits{/sha}","comments_url":"https://api.github.com/repos/ravasthi/hammerspoon/comments{/number}","issue_comment_url":"https://api.github.com/repos/ravasthi/hammerspoon/issues/comments{/number}","contents_url":"https://api.github.com/repos/ravasthi/hammerspoon/contents/{+path}","compare_url":"https://api.github.com/repos/ravasthi/hammerspoon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ravasthi/hammerspoon/merges","archive_url":"https://api.github.com/repos/ravasthi/hammerspoon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ravasthi/hammerspoon/downloads","issues_url":"https://api.github.com/repos/ravasthi/hammerspoon/issues{/number}","pulls_url":"https://api.github.com/repos/ravasthi/hammerspoon/pulls{/number}","milestones_url":"https://api.github.com/repos/ravasthi/hammerspoon/milestones{/number}","notifications_url":"https://api.github.com/repos/ravasthi/hammerspoon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ravasthi/hammerspoon/labels{/name}","releases_url":"https://api.github.com/repos/ravasthi/hammerspoon/releases{/id}","created_at":"2015-10-20T02:47:23Z","updated_at":"2015-10-20T02:47:25Z","pushed_at":"2015-10-29T16:38:38Z","git_url":"git://github.com/ravasthi/hammerspoon.git","ssh_url":"git@github.com:ravasthi/hammerspoon.git","clone_url":"https://github.com/ravasthi/hammerspoon.git","svn_url":"https://github.com/ravasthi/hammerspoon","homepage":"http://www.hammerspoon.org","size":17500,"stargazers_count":0,"watchers_count":0,"language":"Objective-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":"Hammerspoon:master","ref":"master","sha":"b5e22c24a6269f09126e62285e843bc877088e2c","user":{"login":"Hammerspoon","id":9214848,"avatar_url":"https://avatars.githubusercontent.com/u/9214848?v=3","gravatar_id":"","url":"https://api.github.com/users/Hammerspoon","html_url":"https://github.com/Hammerspoon","followers_url":"https://api.github.com/users/Hammerspoon/followers","following_url":"https://api.github.com/users/Hammerspoon/following{/other_user}","gists_url":"https://api.github.com/users/Hammerspoon/gists{/gist_id}","starred_url":"https://api.github.com/users/Hammerspoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hammerspoon/subscriptions","organizations_url":"https://api.github.com/users/Hammerspoon/orgs","repos_url":"https://api.github.com/users/Hammerspoon/repos","events_url":"https://api.github.com/users/Hammerspoon/events{/privacy}","received_events_url":"https://api.github.com/users/Hammerspoon/received_events","type":"Organization","site_admin":false},"repo":{"id":24956772,"name":"hammerspoon","full_name":"Hammerspoon/hammerspoon","owner":{"login":"Hammerspoon","id":9214848,"avatar_url":"https://avatars.githubusercontent.com/u/9214848?v=3","gravatar_id":"","url":"https://api.github.com/users/Hammerspoon","html_url":"https://github.com/Hammerspoon","followers_url":"https://api.github.com/users/Hammerspoon/followers","following_url":"https://api.github.com/users/Hammerspoon/following{/other_user}","gists_url":"https://api.github.com/users/Hammerspoon/gists{/gist_id}","starred_url":"https://api.github.com/users/Hammerspoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hammerspoon/subscriptions","organizations_url":"https://api.github.com/users/Hammerspoon/orgs","repos_url":"https://api.github.com/users/Hammerspoon/repos","events_url":"https://api.github.com/users/Hammerspoon/events{/privacy}","received_events_url":"https://api.github.com/users/Hammerspoon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Hammerspoon/hammerspoon","description":"Staggeringly powerful OS X desktop automation with Lua","fork":false,"url":"https://api.github.com/repos/Hammerspoon/hammerspoon","forks_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/forks","keys_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/teams","hooks_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/hooks","issue_events_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/events{/number}","events_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/events","assignees_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/assignees{/user}","branches_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/branches{/branch}","tags_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/tags","blobs_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/git/refs{/sha}","trees_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/statuses/{sha}","languages_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/languages","stargazers_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/stargazers","contributors_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/contributors","subscribers_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/subscribers","subscription_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/subscription","commits_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/commits{/sha}","git_commits_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/git/commits{/sha}","comments_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/comments{/number}","issue_comment_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/comments{/number}","contents_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/contents/{+path}","compare_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/merges","archive_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/downloads","issues_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues{/number}","pulls_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/pulls{/number}","milestones_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/milestones{/number}","notifications_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/labels{/name}","releases_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/releases{/id}","created_at":"2014-10-08T19:24:44Z","updated_at":"2015-10-29T18:34:42Z","pushed_at":"2015-10-29T23:54:55Z","git_url":"git://github.com/Hammerspoon/hammerspoon.git","ssh_url":"git@github.com:Hammerspoon/hammerspoon.git","clone_url":"https://github.com/Hammerspoon/hammerspoon.git","svn_url":"https://github.com/Hammerspoon/hammerspoon","homepage":"http://www.hammerspoon.org","size":21061,"stargazers_count":591,"watchers_count":591,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":63,"mirror_url":null,"open_issues_count":93,"forks":63,"open_issues":93,"watchers":591,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Hammerspoon/hammerspoon/pulls/614"},"html":{"href":"https://github.com/Hammerspoon/hammerspoon/pull/614"},"issue":{"href":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/614"},"comments":{"href":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/614/comments"},"review_comments":{"href":"https://api.github.com/repos/Hammerspoon/hammerspoon/pulls/614/comments"},"review_comment":{"href":"https://api.github.com/repos/Hammerspoon/hammerspoon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Hammerspoon/hammerspoon/pulls/614/commits"},"statuses":{"href":"https://api.github.com/repos/Hammerspoon/hammerspoon/statuses/84dbe8ca2d85f67a1a95097fdd48242a41cbcfb2"}}}}