{"action":"created","comment":{"url":"https://api.github.com/repos/i3/i3/pulls/comments/42889620","id":42889620,"diff_hunk":"@@ -1819,8 +1863,20 @@ void draw_bars(bool unhide) {\n             reconfig_windows(false);\n         }\n \n+        bool output_needs_focus_colors = false;\n+        if (focus_colors_differ) {\n+            i3_ws *ws_walk;\n+            TAILQ_FOREACH(ws_walk, outputs_walk->workspaces, tailq) {","path":"i3bar/src/xcb.c","position":482,"original_position":482,"commit_id":"1eaff7da95ab5ba5cf6167197c2334b955113849","original_commit_id":"1eaff7da95ab5ba5cf6167197c2334b955113849","user":{"login":"Airblader","id":2392216,"avatar_url":"https://avatars.githubusercontent.com/u/2392216?v=3","gravatar_id":"","url":"https://api.github.com/users/Airblader","html_url":"https://github.com/Airblader","followers_url":"https://api.github.com/users/Airblader/followers","following_url":"https://api.github.com/users/Airblader/following{/other_user}","gists_url":"https://api.github.com/users/Airblader/gists{/gist_id}","starred_url":"https://api.github.com/users/Airblader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Airblader/subscriptions","organizations_url":"https://api.github.com/users/Airblader/orgs","repos_url":"https://api.github.com/users/Airblader/repos","events_url":"https://api.github.com/users/Airblader/events{/privacy}","received_events_url":"https://api.github.com/users/Airblader/received_events","type":"User","site_admin":false},"body":"I think it'd be good to move this logic into a function in `i3bar/src/outputs.c`.","created_at":"2015-10-23T17:13:58Z","updated_at":"2015-10-23T17:13:58Z","html_url":"https://github.com/i3/i3/pull/2030#discussion_r42889620","pull_request_url":"https://api.github.com/repos/i3/i3/pulls/2030","_links":{"self":{"href":"https://api.github.com/repos/i3/i3/pulls/comments/42889620"},"html":{"href":"https://github.com/i3/i3/pull/2030#discussion_r42889620"},"pull_request":{"href":"https://api.github.com/repos/i3/i3/pulls/2030"}}},"pull_request":{"url":"https://api.github.com/repos/i3/i3/pulls/2030","id":48604131,"html_url":"https://github.com/i3/i3/pull/2030","diff_url":"https://github.com/i3/i3/pull/2030.diff","patch_url":"https://github.com/i3/i3/pull/2030.patch","issue_url":"https://api.github.com/repos/i3/i3/issues/2030","number":2030,"state":"open","locked":false,"title":"Fix #1824, and focused output optionally uses different i3bar colors (#2020)","user":{"login":"DavidMikeSimon","id":350396,"avatar_url":"https://avatars.githubusercontent.com/u/350396?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidMikeSimon","html_url":"https://github.com/DavidMikeSimon","followers_url":"https://api.github.com/users/DavidMikeSimon/followers","following_url":"https://api.github.com/users/DavidMikeSimon/following{/other_user}","gists_url":"https://api.github.com/users/DavidMikeSimon/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidMikeSimon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidMikeSimon/subscriptions","organizations_url":"https://api.github.com/users/DavidMikeSimon/orgs","repos_url":"https://api.github.com/users/DavidMikeSimon/repos","events_url":"https://api.github.com/users/DavidMikeSimon/events{/privacy}","received_events_url":"https://api.github.com/users/DavidMikeSimon/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-23T16:57:41Z","updated_at":"2015-10-23T17:13:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"328398eb577b9d2bc92104102df9653a728ced62","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/i3/i3/pulls/2030/commits","review_comments_url":"https://api.github.com/repos/i3/i3/pulls/2030/comments","review_comment_url":"https://api.github.com/repos/i3/i3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/i3/i3/issues/2030/comments","statuses_url":"https://api.github.com/repos/i3/i3/statuses/1eaff7da95ab5ba5cf6167197c2334b955113849","head":{"label":"DavidMikeSimon:focus-bar-color","ref":"focus-bar-color","sha":"1eaff7da95ab5ba5cf6167197c2334b955113849","user":{"login":"DavidMikeSimon","id":350396,"avatar_url":"https://avatars.githubusercontent.com/u/350396?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidMikeSimon","html_url":"https://github.com/DavidMikeSimon","followers_url":"https://api.github.com/users/DavidMikeSimon/followers","following_url":"https://api.github.com/users/DavidMikeSimon/following{/other_user}","gists_url":"https://api.github.com/users/DavidMikeSimon/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidMikeSimon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidMikeSimon/subscriptions","organizations_url":"https://api.github.com/users/DavidMikeSimon/orgs","repos_url":"https://api.github.com/users/DavidMikeSimon/repos","events_url":"https://api.github.com/users/DavidMikeSimon/events{/privacy}","received_events_url":"https://api.github.com/users/DavidMikeSimon/received_events","type":"User","site_admin":false},"repo":{"id":44678616,"name":"i3","full_name":"DavidMikeSimon/i3","owner":{"login":"DavidMikeSimon","id":350396,"avatar_url":"https://avatars.githubusercontent.com/u/350396?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidMikeSimon","html_url":"https://github.com/DavidMikeSimon","followers_url":"https://api.github.com/users/DavidMikeSimon/followers","following_url":"https://api.github.com/users/DavidMikeSimon/following{/other_user}","gists_url":"https://api.github.com/users/DavidMikeSimon/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidMikeSimon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidMikeSimon/subscriptions","organizations_url":"https://api.github.com/users/DavidMikeSimon/orgs","repos_url":"https://api.github.com/users/DavidMikeSimon/repos","events_url":"https://api.github.com/users/DavidMikeSimon/events{/privacy}","received_events_url":"https://api.github.com/users/DavidMikeSimon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DavidMikeSimon/i3","description":"A better tiling and dynamic window manager","fork":true,"url":"https://api.github.com/repos/DavidMikeSimon/i3","forks_url":"https://api.github.com/repos/DavidMikeSimon/i3/forks","keys_url":"https://api.github.com/repos/DavidMikeSimon/i3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DavidMikeSimon/i3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DavidMikeSimon/i3/teams","hooks_url":"https://api.github.com/repos/DavidMikeSimon/i3/hooks","issue_events_url":"https://api.github.com/repos/DavidMikeSimon/i3/issues/events{/number}","events_url":"https://api.github.com/repos/DavidMikeSimon/i3/events","assignees_url":"https://api.github.com/repos/DavidMikeSimon/i3/assignees{/user}","branches_url":"https://api.github.com/repos/DavidMikeSimon/i3/branches{/branch}","tags_url":"https://api.github.com/repos/DavidMikeSimon/i3/tags","blobs_url":"https://api.github.com/repos/DavidMikeSimon/i3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DavidMikeSimon/i3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DavidMikeSimon/i3/git/refs{/sha}","trees_url":"https://api.github.com/repos/DavidMikeSimon/i3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DavidMikeSimon/i3/statuses/{sha}","languages_url":"https://api.github.com/repos/DavidMikeSimon/i3/languages","stargazers_url":"https://api.github.com/repos/DavidMikeSimon/i3/stargazers","contributors_url":"https://api.github.com/repos/DavidMikeSimon/i3/contributors","subscribers_url":"https://api.github.com/repos/DavidMikeSimon/i3/subscribers","subscription_url":"https://api.github.com/repos/DavidMikeSimon/i3/subscription","commits_url":"https://api.github.com/repos/DavidMikeSimon/i3/commits{/sha}","git_commits_url":"https://api.github.com/repos/DavidMikeSimon/i3/git/commits{/sha}","comments_url":"https://api.github.com/repos/DavidMikeSimon/i3/comments{/number}","issue_comment_url":"https://api.github.com/repos/DavidMikeSimon/i3/issues/comments{/number}","contents_url":"https://api.github.com/repos/DavidMikeSimon/i3/contents/{+path}","compare_url":"https://api.github.com/repos/DavidMikeSimon/i3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DavidMikeSimon/i3/merges","archive_url":"https://api.github.com/repos/DavidMikeSimon/i3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DavidMikeSimon/i3/downloads","issues_url":"https://api.github.com/repos/DavidMikeSimon/i3/issues{/number}","pulls_url":"https://api.github.com/repos/DavidMikeSimon/i3/pulls{/number}","milestones_url":"https://api.github.com/repos/DavidMikeSimon/i3/milestones{/number}","notifications_url":"https://api.github.com/repos/DavidMikeSimon/i3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DavidMikeSimon/i3/labels{/name}","releases_url":"https://api.github.com/repos/DavidMikeSimon/i3/releases{/id}","created_at":"2015-10-21T13:36:52Z","updated_at":"2015-10-21T13:36:55Z","pushed_at":"2015-10-23T16:53:09Z","git_url":"git://github.com/DavidMikeSimon/i3.git","ssh_url":"git@github.com:DavidMikeSimon/i3.git","clone_url":"https://github.com/DavidMikeSimon/i3.git","svn_url":"https://github.com/DavidMikeSimon/i3","homepage":"http://i3wm.org/","size":10042,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"next"}},"base":{"label":"i3:next","ref":"next","sha":"185a2f24ba9fde8a8e1df5a60c7c2b7b620ef73b","user":{"login":"i3","id":7904352,"avatar_url":"https://avatars.githubusercontent.com/u/7904352?v=3","gravatar_id":"","url":"https://api.github.com/users/i3","html_url":"https://github.com/i3","followers_url":"https://api.github.com/users/i3/followers","following_url":"https://api.github.com/users/i3/following{/other_user}","gists_url":"https://api.github.com/users/i3/gists{/gist_id}","starred_url":"https://api.github.com/users/i3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i3/subscriptions","organizations_url":"https://api.github.com/users/i3/orgs","repos_url":"https://api.github.com/users/i3/repos","events_url":"https://api.github.com/users/i3/events{/privacy}","received_events_url":"https://api.github.com/users/i3/received_events","type":"Organization","site_admin":false},"repo":{"id":30291090,"name":"i3","full_name":"i3/i3","owner":{"login":"i3","id":7904352,"avatar_url":"https://avatars.githubusercontent.com/u/7904352?v=3","gravatar_id":"","url":"https://api.github.com/users/i3","html_url":"https://github.com/i3","followers_url":"https://api.github.com/users/i3/followers","following_url":"https://api.github.com/users/i3/following{/other_user}","gists_url":"https://api.github.com/users/i3/gists{/gist_id}","starred_url":"https://api.github.com/users/i3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i3/subscriptions","organizations_url":"https://api.github.com/users/i3/orgs","repos_url":"https://api.github.com/users/i3/repos","events_url":"https://api.github.com/users/i3/events{/privacy}","received_events_url":"https://api.github.com/users/i3/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/i3/i3","description":"A better tiling and dynamic window manager","fork":false,"url":"https://api.github.com/repos/i3/i3","forks_url":"https://api.github.com/repos/i3/i3/forks","keys_url":"https://api.github.com/repos/i3/i3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/i3/i3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/i3/i3/teams","hooks_url":"https://api.github.com/repos/i3/i3/hooks","issue_events_url":"https://api.github.com/repos/i3/i3/issues/events{/number}","events_url":"https://api.github.com/repos/i3/i3/events","assignees_url":"https://api.github.com/repos/i3/i3/assignees{/user}","branches_url":"https://api.github.com/repos/i3/i3/branches{/branch}","tags_url":"https://api.github.com/repos/i3/i3/tags","blobs_url":"https://api.github.com/repos/i3/i3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/i3/i3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/i3/i3/git/refs{/sha}","trees_url":"https://api.github.com/repos/i3/i3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/i3/i3/statuses/{sha}","languages_url":"https://api.github.com/repos/i3/i3/languages","stargazers_url":"https://api.github.com/repos/i3/i3/stargazers","contributors_url":"https://api.github.com/repos/i3/i3/contributors","subscribers_url":"https://api.github.com/repos/i3/i3/subscribers","subscription_url":"https://api.github.com/repos/i3/i3/subscription","commits_url":"https://api.github.com/repos/i3/i3/commits{/sha}","git_commits_url":"https://api.github.com/repos/i3/i3/git/commits{/sha}","comments_url":"https://api.github.com/repos/i3/i3/comments{/number}","issue_comment_url":"https://api.github.com/repos/i3/i3/issues/comments{/number}","contents_url":"https://api.github.com/repos/i3/i3/contents/{+path}","compare_url":"https://api.github.com/repos/i3/i3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/i3/i3/merges","archive_url":"https://api.github.com/repos/i3/i3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/i3/i3/downloads","issues_url":"https://api.github.com/repos/i3/i3/issues{/number}","pulls_url":"https://api.github.com/repos/i3/i3/pulls{/number}","milestones_url":"https://api.github.com/repos/i3/i3/milestones{/number}","notifications_url":"https://api.github.com/repos/i3/i3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/i3/i3/labels{/name}","releases_url":"https://api.github.com/repos/i3/i3/releases{/id}","created_at":"2015-02-04T09:23:51Z","updated_at":"2015-10-23T12:35:16Z","pushed_at":"2015-10-23T16:57:41Z","git_url":"git://github.com/i3/i3.git","ssh_url":"git@github.com:i3/i3.git","clone_url":"https://github.com/i3/i3.git","svn_url":"https://github.com/i3/i3","homepage":"http://i3wm.org/","size":10042,"stargazers_count":728,"watchers_count":728,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":97,"mirror_url":null,"open_issues_count":71,"forks":97,"open_issues":71,"watchers":728,"default_branch":"next"}},"_links":{"self":{"href":"https://api.github.com/repos/i3/i3/pulls/2030"},"html":{"href":"https://github.com/i3/i3/pull/2030"},"issue":{"href":"https://api.github.com/repos/i3/i3/issues/2030"},"comments":{"href":"https://api.github.com/repos/i3/i3/issues/2030/comments"},"review_comments":{"href":"https://api.github.com/repos/i3/i3/pulls/2030/comments"},"review_comment":{"href":"https://api.github.com/repos/i3/i3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/i3/i3/pulls/2030/commits"},"statuses":{"href":"https://api.github.com/repos/i3/i3/statuses/1eaff7da95ab5ba5cf6167197c2334b955113849"}}}}