{"action":"created","comment":{"url":"https://api.github.com/repos/i3/i3/pulls/comments/27346860","id":27346860,"diff_hunk":"@@ -67,6 +67,11 @@\n #include \"xcb.h\"\n #include \"libi3.h\"\n \n+#define row_y(row) \\\n+    ((row - 1) * font.height + logical_px(4))","path":"i3-config-wizard/main.c","position":5,"original_position":5,"commit_id":"0b7ff4696dfd3a6c1e8e01eb0070867c69f7ffde","original_commit_id":"0b7ff4696dfd3a6c1e8e01eb0070867c69f7ffde","user":{"login":"stapelberg","id":55506,"avatar_url":"https://avatars.githubusercontent.com/u/55506?v=3","gravatar_id":"","url":"https://api.github.com/users/stapelberg","html_url":"https://github.com/stapelberg","followers_url":"https://api.github.com/users/stapelberg/followers","following_url":"https://api.github.com/users/stapelberg/following{/other_user}","gists_url":"https://api.github.com/users/stapelberg/gists{/gist_id}","starred_url":"https://api.github.com/users/stapelberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stapelberg/subscriptions","organizations_url":"https://api.github.com/users/stapelberg/orgs","repos_url":"https://api.github.com/users/stapelberg/repos","events_url":"https://api.github.com/users/stapelberg/events{/privacy}","received_events_url":"https://api.github.com/users/stapelberg/received_events","type":"User","site_admin":false},"body":"For macro safety, please put parens around row, i.e. `(((row) - 1) …`","created_at":"2015-03-28T17:50:17Z","updated_at":"2015-03-28T17:50:17Z","html_url":"https://github.com/i3/i3/pull/1592#discussion_r27346860","pull_request_url":"https://api.github.com/repos/i3/i3/pulls/1592","_links":{"self":{"href":"https://api.github.com/repos/i3/i3/pulls/comments/27346860"},"html":{"href":"https://github.com/i3/i3/pull/1592#discussion_r27346860"},"pull_request":{"href":"https://api.github.com/repos/i3/i3/pulls/1592"}}},"pull_request":{"url":"https://api.github.com/repos/i3/i3/pulls/1592","id":32052719,"html_url":"https://github.com/i3/i3/pull/1592","diff_url":"https://github.com/i3/i3/pull/1592.diff","patch_url":"https://github.com/i3/i3/pull/1592.patch","issue_url":"https://api.github.com/repos/i3/i3/issues/1592","number":1592,"state":"open","locked":false,"title":"Make wizard window size and click coordinates dependent on font","user":{"login":"Deiz","id":84350,"avatar_url":"https://avatars.githubusercontent.com/u/84350?v=3","gravatar_id":"","url":"https://api.github.com/users/Deiz","html_url":"https://github.com/Deiz","followers_url":"https://api.github.com/users/Deiz/followers","following_url":"https://api.github.com/users/Deiz/following{/other_user}","gists_url":"https://api.github.com/users/Deiz/gists{/gist_id}","starred_url":"https://api.github.com/users/Deiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Deiz/subscriptions","organizations_url":"https://api.github.com/users/Deiz/orgs","repos_url":"https://api.github.com/users/Deiz/repos","events_url":"https://api.github.com/users/Deiz/events{/privacy}","received_events_url":"https://api.github.com/users/Deiz/received_events","type":"User","site_admin":false},"body":"This guarantees the whole visible area of the pixmap is reinitialized, and ensures that the click bounding boxes are properly aligned with the displayed text.\r\n\r\nAs a side note, the new font is seemingly a bit too small, and the text alignment of the modifiers is a bit off. Using 9 or 10 pt font would resolve that.","created_at":"2015-03-26T19:37:25Z","updated_at":"2015-03-28T17:50:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c244a577777287b00cab1548f2e658811b66b0f7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/i3/i3/pulls/1592/commits","review_comments_url":"https://api.github.com/repos/i3/i3/pulls/1592/comments","review_comment_url":"https://api.github.com/repos/i3/i3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/i3/i3/issues/1592/comments","statuses_url":"https://api.github.com/repos/i3/i3/statuses/0b7ff4696dfd3a6c1e8e01eb0070867c69f7ffde","head":{"label":"Deiz:xdg-wizard-font","ref":"xdg-wizard-font","sha":"0b7ff4696dfd3a6c1e8e01eb0070867c69f7ffde","user":{"login":"Deiz","id":84350,"avatar_url":"https://avatars.githubusercontent.com/u/84350?v=3","gravatar_id":"","url":"https://api.github.com/users/Deiz","html_url":"https://github.com/Deiz","followers_url":"https://api.github.com/users/Deiz/followers","following_url":"https://api.github.com/users/Deiz/following{/other_user}","gists_url":"https://api.github.com/users/Deiz/gists{/gist_id}","starred_url":"https://api.github.com/users/Deiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Deiz/subscriptions","organizations_url":"https://api.github.com/users/Deiz/orgs","repos_url":"https://api.github.com/users/Deiz/repos","events_url":"https://api.github.com/users/Deiz/events{/privacy}","received_events_url":"https://api.github.com/users/Deiz/received_events","type":"User","site_admin":false},"repo":{"id":32891205,"name":"i3","full_name":"Deiz/i3","owner":{"login":"Deiz","id":84350,"avatar_url":"https://avatars.githubusercontent.com/u/84350?v=3","gravatar_id":"","url":"https://api.github.com/users/Deiz","html_url":"https://github.com/Deiz","followers_url":"https://api.github.com/users/Deiz/followers","following_url":"https://api.github.com/users/Deiz/following{/other_user}","gists_url":"https://api.github.com/users/Deiz/gists{/gist_id}","starred_url":"https://api.github.com/users/Deiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Deiz/subscriptions","organizations_url":"https://api.github.com/users/Deiz/orgs","repos_url":"https://api.github.com/users/Deiz/repos","events_url":"https://api.github.com/users/Deiz/events{/privacy}","received_events_url":"https://api.github.com/users/Deiz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Deiz/i3","description":"A better tiling and dynamic window manager","fork":true,"url":"https://api.github.com/repos/Deiz/i3","forks_url":"https://api.github.com/repos/Deiz/i3/forks","keys_url":"https://api.github.com/repos/Deiz/i3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Deiz/i3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Deiz/i3/teams","hooks_url":"https://api.github.com/repos/Deiz/i3/hooks","issue_events_url":"https://api.github.com/repos/Deiz/i3/issues/events{/number}","events_url":"https://api.github.com/repos/Deiz/i3/events","assignees_url":"https://api.github.com/repos/Deiz/i3/assignees{/user}","branches_url":"https://api.github.com/repos/Deiz/i3/branches{/branch}","tags_url":"https://api.github.com/repos/Deiz/i3/tags","blobs_url":"https://api.github.com/repos/Deiz/i3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Deiz/i3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Deiz/i3/git/refs{/sha}","trees_url":"https://api.github.com/repos/Deiz/i3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Deiz/i3/statuses/{sha}","languages_url":"https://api.github.com/repos/Deiz/i3/languages","stargazers_url":"https://api.github.com/repos/Deiz/i3/stargazers","contributors_url":"https://api.github.com/repos/Deiz/i3/contributors","subscribers_url":"https://api.github.com/repos/Deiz/i3/subscribers","subscription_url":"https://api.github.com/repos/Deiz/i3/subscription","commits_url":"https://api.github.com/repos/Deiz/i3/commits{/sha}","git_commits_url":"https://api.github.com/repos/Deiz/i3/git/commits{/sha}","comments_url":"https://api.github.com/repos/Deiz/i3/comments{/number}","issue_comment_url":"https://api.github.com/repos/Deiz/i3/issues/comments{/number}","contents_url":"https://api.github.com/repos/Deiz/i3/contents/{+path}","compare_url":"https://api.github.com/repos/Deiz/i3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Deiz/i3/merges","archive_url":"https://api.github.com/repos/Deiz/i3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Deiz/i3/downloads","issues_url":"https://api.github.com/repos/Deiz/i3/issues{/number}","pulls_url":"https://api.github.com/repos/Deiz/i3/pulls{/number}","milestones_url":"https://api.github.com/repos/Deiz/i3/milestones{/number}","notifications_url":"https://api.github.com/repos/Deiz/i3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Deiz/i3/labels{/name}","releases_url":"https://api.github.com/repos/Deiz/i3/releases{/id}","created_at":"2015-03-25T21:14:55Z","updated_at":"2015-03-26T01:35:08Z","pushed_at":"2015-03-28T17:00:42Z","git_url":"git://github.com/Deiz/i3.git","ssh_url":"git@github.com:Deiz/i3.git","clone_url":"https://github.com/Deiz/i3.git","svn_url":"https://github.com/Deiz/i3","homepage":"http://i3wm.org/","size":7197,"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":"ad31b13cb66f65431189f0ade323b9634cc26e8c","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-03-28T17:16:28Z","pushed_at":"2015-03-28T17:30:13Z","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":8712,"stargazers_count":271,"watchers_count":271,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":85,"forks":31,"open_issues":85,"watchers":271,"default_branch":"next"}},"_links":{"self":{"href":"https://api.github.com/repos/i3/i3/pulls/1592"},"html":{"href":"https://github.com/i3/i3/pull/1592"},"issue":{"href":"https://api.github.com/repos/i3/i3/issues/1592"},"comments":{"href":"https://api.github.com/repos/i3/i3/issues/1592/comments"},"review_comments":{"href":"https://api.github.com/repos/i3/i3/pulls/1592/comments"},"review_comment":{"href":"https://api.github.com/repos/i3/i3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/i3/i3/pulls/1592/commits"},"statuses":{"href":"https://api.github.com/repos/i3/i3/statuses/0b7ff4696dfd3a6c1e8e01eb0070867c69f7ffde"}}}}