{"action":"created","comment":{"url":"https://api.github.com/repos/SirCmpwn/sway/pulls/comments/48264791","id":48264791,"diff_hunk":"@@ -362,10 +401,32 @@ void render() {\n \t// Command output\n \tcairo_set_source_u32(window->cairo, colors.statusline);\n \tint width, height;\n-\tget_text_size(window, &width, &height, \"%s\", line);\n \n-\tcairo_move_to(window->cairo, window->width - margin - width, margin);\n-\tpango_printf(window, \"%s\", line);\n+\tif (protocol == TEXT) {\n+\t\tget_text_size(window, &width, &height, \"%s\", line);\n+\t\tcairo_move_to(window->cairo, window->width - margin - width, margin);\n+\t\tpango_printf(window, \"%s\", line);\n+\t} else if (protocol == I3BAR && status_line) {\n+\t\tint i;\n+\t\tint moved = 0;\n+\t\tbool corner = true;\n+\t\tfor ( i = status_line->length - 1; i >= 0; --i ) {","path":"swaybar/main.c","position":96,"original_position":96,"commit_id":"1efd3b5fba2ff28307f3216d5eca04f8987a8add","original_commit_id":"1efd3b5fba2ff28307f3216d5eca04f8987a8add","user":{"login":"SirCmpwn","id":1310872,"avatar_url":"https://avatars.githubusercontent.com/u/1310872?v=3","gravatar_id":"","url":"https://api.github.com/users/SirCmpwn","html_url":"https://github.com/SirCmpwn","followers_url":"https://api.github.com/users/SirCmpwn/followers","following_url":"https://api.github.com/users/SirCmpwn/following{/other_user}","gists_url":"https://api.github.com/users/SirCmpwn/gists{/gist_id}","starred_url":"https://api.github.com/users/SirCmpwn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirCmpwn/subscriptions","organizations_url":"https://api.github.com/users/SirCmpwn/orgs","repos_url":"https://api.github.com/users/SirCmpwn/repos","events_url":"https://api.github.com/users/SirCmpwn/events{/privacy}","received_events_url":"https://api.github.com/users/SirCmpwn/received_events","type":"User","site_admin":false},"body":"Style issue here","created_at":"2015-12-22T15:41:11Z","updated_at":"2015-12-22T15:41:11Z","html_url":"https://github.com/SirCmpwn/sway/pull/394#discussion_r48264791","pull_request_url":"https://api.github.com/repos/SirCmpwn/sway/pulls/394","_links":{"self":{"href":"https://api.github.com/repos/SirCmpwn/sway/pulls/comments/48264791"},"html":{"href":"https://github.com/SirCmpwn/sway/pull/394#discussion_r48264791"},"pull_request":{"href":"https://api.github.com/repos/SirCmpwn/sway/pulls/394"}}},"pull_request":{"url":"https://api.github.com/repos/SirCmpwn/sway/pulls/394","id":54381333,"html_url":"https://github.com/SirCmpwn/sway/pull/394","diff_url":"https://github.com/SirCmpwn/sway/pull/394.diff","patch_url":"https://github.com/SirCmpwn/sway/pull/394.patch","issue_url":"https://api.github.com/repos/SirCmpwn/sway/issues/394","number":394,"state":"open","locked":false,"title":"swaybar: I3bar json protocol","user":{"login":"progandy","id":1003865,"avatar_url":"https://avatars.githubusercontent.com/u/1003865?v=3","gravatar_id":"","url":"https://api.github.com/users/progandy","html_url":"https://github.com/progandy","followers_url":"https://api.github.com/users/progandy/followers","following_url":"https://api.github.com/users/progandy/following{/other_user}","gists_url":"https://api.github.com/users/progandy/gists{/gist_id}","starred_url":"https://api.github.com/users/progandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/progandy/subscriptions","organizations_url":"https://api.github.com/users/progandy/orgs","repos_url":"https://api.github.com/users/progandy/repos","events_url":"https://api.github.com/users/progandy/events{/privacy}","received_events_url":"https://api.github.com/users/progandy/received_events","type":"User","site_admin":false},"body":"This commit series implements three things:\r\n* Allow swaybar to understand the i3bar json protocol.\r\n* Format output with specified colors and separators.\r\n* Fall back to legacy single line text if the status_command doesn't ask for the json protocol.","created_at":"2015-12-22T15:29:39Z","updated_at":"2015-12-22T15:41:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"471722d8d173187261d92920c5ded12c2d6ec7aa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SirCmpwn/sway/pulls/394/commits","review_comments_url":"https://api.github.com/repos/SirCmpwn/sway/pulls/394/comments","review_comment_url":"https://api.github.com/repos/SirCmpwn/sway/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SirCmpwn/sway/issues/394/comments","statuses_url":"https://api.github.com/repos/SirCmpwn/sway/statuses/1efd3b5fba2ff28307f3216d5eca04f8987a8add","head":{"label":"progandy:i3bar-json-protocol","ref":"i3bar-json-protocol","sha":"1efd3b5fba2ff28307f3216d5eca04f8987a8add","user":{"login":"progandy","id":1003865,"avatar_url":"https://avatars.githubusercontent.com/u/1003865?v=3","gravatar_id":"","url":"https://api.github.com/users/progandy","html_url":"https://github.com/progandy","followers_url":"https://api.github.com/users/progandy/followers","following_url":"https://api.github.com/users/progandy/following{/other_user}","gists_url":"https://api.github.com/users/progandy/gists{/gist_id}","starred_url":"https://api.github.com/users/progandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/progandy/subscriptions","organizations_url":"https://api.github.com/users/progandy/orgs","repos_url":"https://api.github.com/users/progandy/repos","events_url":"https://api.github.com/users/progandy/events{/privacy}","received_events_url":"https://api.github.com/users/progandy/received_events","type":"User","site_admin":false},"repo":{"id":47418838,"name":"sway","full_name":"progandy/sway","owner":{"login":"progandy","id":1003865,"avatar_url":"https://avatars.githubusercontent.com/u/1003865?v=3","gravatar_id":"","url":"https://api.github.com/users/progandy","html_url":"https://github.com/progandy","followers_url":"https://api.github.com/users/progandy/followers","following_url":"https://api.github.com/users/progandy/following{/other_user}","gists_url":"https://api.github.com/users/progandy/gists{/gist_id}","starred_url":"https://api.github.com/users/progandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/progandy/subscriptions","organizations_url":"https://api.github.com/users/progandy/orgs","repos_url":"https://api.github.com/users/progandy/repos","events_url":"https://api.github.com/users/progandy/events{/privacy}","received_events_url":"https://api.github.com/users/progandy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/progandy/sway","description":"i3-compatible window manager for Wayland (WIP)","fork":true,"url":"https://api.github.com/repos/progandy/sway","forks_url":"https://api.github.com/repos/progandy/sway/forks","keys_url":"https://api.github.com/repos/progandy/sway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/progandy/sway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/progandy/sway/teams","hooks_url":"https://api.github.com/repos/progandy/sway/hooks","issue_events_url":"https://api.github.com/repos/progandy/sway/issues/events{/number}","events_url":"https://api.github.com/repos/progandy/sway/events","assignees_url":"https://api.github.com/repos/progandy/sway/assignees{/user}","branches_url":"https://api.github.com/repos/progandy/sway/branches{/branch}","tags_url":"https://api.github.com/repos/progandy/sway/tags","blobs_url":"https://api.github.com/repos/progandy/sway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/progandy/sway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/progandy/sway/git/refs{/sha}","trees_url":"https://api.github.com/repos/progandy/sway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/progandy/sway/statuses/{sha}","languages_url":"https://api.github.com/repos/progandy/sway/languages","stargazers_url":"https://api.github.com/repos/progandy/sway/stargazers","contributors_url":"https://api.github.com/repos/progandy/sway/contributors","subscribers_url":"https://api.github.com/repos/progandy/sway/subscribers","subscription_url":"https://api.github.com/repos/progandy/sway/subscription","commits_url":"https://api.github.com/repos/progandy/sway/commits{/sha}","git_commits_url":"https://api.github.com/repos/progandy/sway/git/commits{/sha}","comments_url":"https://api.github.com/repos/progandy/sway/comments{/number}","issue_comment_url":"https://api.github.com/repos/progandy/sway/issues/comments{/number}","contents_url":"https://api.github.com/repos/progandy/sway/contents/{+path}","compare_url":"https://api.github.com/repos/progandy/sway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/progandy/sway/merges","archive_url":"https://api.github.com/repos/progandy/sway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/progandy/sway/downloads","issues_url":"https://api.github.com/repos/progandy/sway/issues{/number}","pulls_url":"https://api.github.com/repos/progandy/sway/pulls{/number}","milestones_url":"https://api.github.com/repos/progandy/sway/milestones{/number}","notifications_url":"https://api.github.com/repos/progandy/sway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/progandy/sway/labels{/name}","releases_url":"https://api.github.com/repos/progandy/sway/releases{/id}","created_at":"2015-12-04T17:23:40Z","updated_at":"2015-12-04T17:23:40Z","pushed_at":"2015-12-22T14:39:19Z","git_url":"git://github.com/progandy/sway.git","ssh_url":"git@github.com:progandy/sway.git","clone_url":"https://github.com/progandy/sway.git","svn_url":"https://github.com/progandy/sway","homepage":"http://swaywm.org/","size":1199,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SirCmpwn:master","ref":"master","sha":"8a22ac3966047353daffe88dd4b8c2910ef519f5","user":{"login":"SirCmpwn","id":1310872,"avatar_url":"https://avatars.githubusercontent.com/u/1310872?v=3","gravatar_id":"","url":"https://api.github.com/users/SirCmpwn","html_url":"https://github.com/SirCmpwn","followers_url":"https://api.github.com/users/SirCmpwn/followers","following_url":"https://api.github.com/users/SirCmpwn/following{/other_user}","gists_url":"https://api.github.com/users/SirCmpwn/gists{/gist_id}","starred_url":"https://api.github.com/users/SirCmpwn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirCmpwn/subscriptions","organizations_url":"https://api.github.com/users/SirCmpwn/orgs","repos_url":"https://api.github.com/users/SirCmpwn/repos","events_url":"https://api.github.com/users/SirCmpwn/events{/privacy}","received_events_url":"https://api.github.com/users/SirCmpwn/received_events","type":"User","site_admin":false},"repo":{"id":40217904,"name":"sway","full_name":"SirCmpwn/sway","owner":{"login":"SirCmpwn","id":1310872,"avatar_url":"https://avatars.githubusercontent.com/u/1310872?v=3","gravatar_id":"","url":"https://api.github.com/users/SirCmpwn","html_url":"https://github.com/SirCmpwn","followers_url":"https://api.github.com/users/SirCmpwn/followers","following_url":"https://api.github.com/users/SirCmpwn/following{/other_user}","gists_url":"https://api.github.com/users/SirCmpwn/gists{/gist_id}","starred_url":"https://api.github.com/users/SirCmpwn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirCmpwn/subscriptions","organizations_url":"https://api.github.com/users/SirCmpwn/orgs","repos_url":"https://api.github.com/users/SirCmpwn/repos","events_url":"https://api.github.com/users/SirCmpwn/events{/privacy}","received_events_url":"https://api.github.com/users/SirCmpwn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SirCmpwn/sway","description":"i3-compatible window manager for Wayland (WIP)","fork":false,"url":"https://api.github.com/repos/SirCmpwn/sway","forks_url":"https://api.github.com/repos/SirCmpwn/sway/forks","keys_url":"https://api.github.com/repos/SirCmpwn/sway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SirCmpwn/sway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SirCmpwn/sway/teams","hooks_url":"https://api.github.com/repos/SirCmpwn/sway/hooks","issue_events_url":"https://api.github.com/repos/SirCmpwn/sway/issues/events{/number}","events_url":"https://api.github.com/repos/SirCmpwn/sway/events","assignees_url":"https://api.github.com/repos/SirCmpwn/sway/assignees{/user}","branches_url":"https://api.github.com/repos/SirCmpwn/sway/branches{/branch}","tags_url":"https://api.github.com/repos/SirCmpwn/sway/tags","blobs_url":"https://api.github.com/repos/SirCmpwn/sway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SirCmpwn/sway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SirCmpwn/sway/git/refs{/sha}","trees_url":"https://api.github.com/repos/SirCmpwn/sway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SirCmpwn/sway/statuses/{sha}","languages_url":"https://api.github.com/repos/SirCmpwn/sway/languages","stargazers_url":"https://api.github.com/repos/SirCmpwn/sway/stargazers","contributors_url":"https://api.github.com/repos/SirCmpwn/sway/contributors","subscribers_url":"https://api.github.com/repos/SirCmpwn/sway/subscribers","subscription_url":"https://api.github.com/repos/SirCmpwn/sway/subscription","commits_url":"https://api.github.com/repos/SirCmpwn/sway/commits{/sha}","git_commits_url":"https://api.github.com/repos/SirCmpwn/sway/git/commits{/sha}","comments_url":"https://api.github.com/repos/SirCmpwn/sway/comments{/number}","issue_comment_url":"https://api.github.com/repos/SirCmpwn/sway/issues/comments{/number}","contents_url":"https://api.github.com/repos/SirCmpwn/sway/contents/{+path}","compare_url":"https://api.github.com/repos/SirCmpwn/sway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SirCmpwn/sway/merges","archive_url":"https://api.github.com/repos/SirCmpwn/sway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SirCmpwn/sway/downloads","issues_url":"https://api.github.com/repos/SirCmpwn/sway/issues{/number}","pulls_url":"https://api.github.com/repos/SirCmpwn/sway/pulls{/number}","milestones_url":"https://api.github.com/repos/SirCmpwn/sway/milestones{/number}","notifications_url":"https://api.github.com/repos/SirCmpwn/sway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SirCmpwn/sway/labels{/name}","releases_url":"https://api.github.com/repos/SirCmpwn/sway/releases{/id}","created_at":"2015-08-05T01:31:45Z","updated_at":"2015-12-22T15:14:20Z","pushed_at":"2015-12-22T15:29:40Z","git_url":"git://github.com/SirCmpwn/sway.git","ssh_url":"git@github.com:SirCmpwn/sway.git","clone_url":"https://github.com/SirCmpwn/sway.git","svn_url":"https://github.com/SirCmpwn/sway","homepage":"http://swaywm.org/","size":1279,"stargazers_count":754,"watchers_count":754,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":53,"mirror_url":null,"open_issues_count":32,"forks":53,"open_issues":32,"watchers":754,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SirCmpwn/sway/pulls/394"},"html":{"href":"https://github.com/SirCmpwn/sway/pull/394"},"issue":{"href":"https://api.github.com/repos/SirCmpwn/sway/issues/394"},"comments":{"href":"https://api.github.com/repos/SirCmpwn/sway/issues/394/comments"},"review_comments":{"href":"https://api.github.com/repos/SirCmpwn/sway/pulls/394/comments"},"review_comment":{"href":"https://api.github.com/repos/SirCmpwn/sway/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SirCmpwn/sway/pulls/394/commits"},"statuses":{"href":"https://api.github.com/repos/SirCmpwn/sway/statuses/1efd3b5fba2ff28307f3216d5eca04f8987a8add"}}}}