{"action":"created","comment":{"url":"https://api.github.com/repos/swaywm/wlroots/pulls/comments/243760052","pull_request_review_id":187616997,"id":243760052,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0Mzc2MDA1Mg==","diff_hunk":"@@ -0,0 +1,78 @@\n+/*\n+ * This an unstable interface of wlroots. No guarantees are made regarding the\n+ * future consistency of this API.\n+ */\n+#ifndef WLR_USE_UNSTABLE\n+#error \"Add -DWLR_USE_UNSTABLE to enable unstable wlroots features\"\n+#endif\n+\n+#ifndef WLR_TYPES_WLR_RELATIVE_POINTER_V1_H\n+#define WLR_TYPES_WLR_RELATIVE_POINTER_V1_H\n+\n+#include <wayland-server.h>\n+\n+\n+/**\n+ * This protocol specifies a set of interfaces used for making clients able to\n+ * receive relative pointer events not obstructed by barriers (such as the\n+ * monitor edge or other pointer barriers).\n+ */\n+\n+\n+/**\n+ * A global interface used for getting the relative pointer object for a given\n+ * pointer.\n+ */\n+\n+struct wlr_relative_pointer_manager_v1 {\n+\tstruct wl_global *global;\n+\tstruct wl_list resources;\n+\tstruct wl_list relative_pointers;\n+\n+\tstruct {\n+\t\tstruct wl_signal destroy;\n+\t\t/**\n+\t\t * returns struct wlr_relative_pointer_v1 *relative_pointer\n+\t\t * called when a new relative_pointer is successfully created\n+\t\t */\n+\t\tstruct wl_signal new_relative_pointer;\n+\t} events;\n+\n+\tstruct wl_listener display_destroy_listener;\n+\n+\tvoid *data;\n+};\n+\n+\n+/**\n+ * A wp_relative_pointer object is an extension to the wl_pointer interface\n+ * used for emitting relative pointer events. It shares the same focus as\n+ * wl_pointer objects of the same seat and will only emit events when it has\n+ * focus.\n+ */\n+\n+struct wlr_relative_pointer_v1 {\n+\tstruct wl_resource *resource;\n+\tstruct wlr_seat *seat;\n+\tstruct wl_list link; // wlr_relative_pointer_manager_v1::relative_pointers\n+\n+\tstruct {\n+\t\tstruct wl_signal destroy;\n+\t} events;\n+\n+\tvoid *data;\n+};\n+\n+struct wlr_relative_pointer_manager_v1 *wlr_relative_pointer_manager_v1_create(\n+\tstruct wl_display *display);\n+void wlr_relative_pointer_manager_v1_destroy(\n+\tstruct wlr_relative_pointer_manager_v1 *relative_pointer_manager);\n+\n+void wlr_relative_pointer_v1_send_relative_motion(\n+\tstruct wlr_relative_pointer_v1 *relative_pointer, uint64_t time,\n+\tdouble dx, double dy, double dx_unaccel, double dy_unaccel);","path":"include/wlr/types/wlr_relative_pointer_v1.h","position":73,"original_position":73,"commit_id":"5999d0322b63c4dd9f2cd902c2b798fc4df77116","original_commit_id":"d7ca308bcaef999248861f8f8c2268bc93fe1863","user":{"login":"emersion","id":506932,"node_id":"MDQ6VXNlcjUwNjkzMg==","avatar_url":"https://avatars1.githubusercontent.com/u/506932?v=4","gravatar_id":"","url":"https://api.github.com/users/emersion","html_url":"https://github.com/emersion","followers_url":"https://api.github.com/users/emersion/followers","following_url":"https://api.github.com/users/emersion/following{/other_user}","gists_url":"https://api.github.com/users/emersion/gists{/gist_id}","starred_url":"https://api.github.com/users/emersion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emersion/subscriptions","organizations_url":"https://api.github.com/users/emersion/orgs","repos_url":"https://api.github.com/users/emersion/repos","events_url":"https://api.github.com/users/emersion/events{/privacy}","received_events_url":"https://api.github.com/users/emersion/received_events","type":"User","site_admin":false},"body":"Bump","created_at":"2018-12-23T11:19:27Z","updated_at":"2018-12-23T11:19:27Z","html_url":"https://github.com/swaywm/wlroots/pull/1432#discussion_r243760052","pull_request_url":"https://api.github.com/repos/swaywm/wlroots/pulls/1432","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/swaywm/wlroots/pulls/comments/243760052"},"html":{"href":"https://github.com/swaywm/wlroots/pull/1432#discussion_r243760052"},"pull_request":{"href":"https://api.github.com/repos/swaywm/wlroots/pulls/1432"}},"in_reply_to_id":241988820},"pull_request":{"url":"https://api.github.com/repos/swaywm/wlroots/pulls/1432","id":237162928,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3MTYyOTI4","html_url":"https://github.com/swaywm/wlroots/pull/1432","diff_url":"https://github.com/swaywm/wlroots/pull/1432.diff","patch_url":"https://github.com/swaywm/wlroots/pull/1432.patch","issue_url":"https://api.github.com/repos/swaywm/wlroots/issues/1432","number":1432,"state":"open","locked":false,"title":"Relative pointers","user":{"login":"ForTheReallys","id":12522143,"node_id":"MDQ6VXNlcjEyNTIyMTQz","avatar_url":"https://avatars3.githubusercontent.com/u/12522143?v=4","gravatar_id":"","url":"https://api.github.com/users/ForTheReallys","html_url":"https://github.com/ForTheReallys","followers_url":"https://api.github.com/users/ForTheReallys/followers","following_url":"https://api.github.com/users/ForTheReallys/following{/other_user}","gists_url":"https://api.github.com/users/ForTheReallys/gists{/gist_id}","starred_url":"https://api.github.com/users/ForTheReallys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ForTheReallys/subscriptions","organizations_url":"https://api.github.com/users/ForTheReallys/orgs","repos_url":"https://api.github.com/users/ForTheReallys/repos","events_url":"https://api.github.com/users/ForTheReallys/events{/privacy}","received_events_url":"https://api.github.com/users/ForTheReallys/received_events","type":"User","site_admin":false},"body":"I've taken @arandomhuman 's pull request and rebased it here.  I did run into the same issue he did though.  When running on the x11 or wayland backend, the cursor uses absolute events which causes the relative pointer to misbehave depending on the cursor's position.  Let me know if you have any suggestions.","created_at":"2018-12-09T22:45:09Z","updated_at":"2018-12-23T11:19:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0d95e3ec2c50d0fce3a06ef850c0000bae1a5cbd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/swaywm/wlroots/pulls/1432/commits","review_comments_url":"https://api.github.com/repos/swaywm/wlroots/pulls/1432/comments","review_comment_url":"https://api.github.com/repos/swaywm/wlroots/pulls/comments{/number}","comments_url":"https://api.github.com/repos/swaywm/wlroots/issues/1432/comments","statuses_url":"https://api.github.com/repos/swaywm/wlroots/statuses/5999d0322b63c4dd9f2cd902c2b798fc4df77116","head":{"label":"ForTheReallys:relative-pointers","ref":"relative-pointers","sha":"5999d0322b63c4dd9f2cd902c2b798fc4df77116","user":{"login":"ForTheReallys","id":12522143,"node_id":"MDQ6VXNlcjEyNTIyMTQz","avatar_url":"https://avatars3.githubusercontent.com/u/12522143?v=4","gravatar_id":"","url":"https://api.github.com/users/ForTheReallys","html_url":"https://github.com/ForTheReallys","followers_url":"https://api.github.com/users/ForTheReallys/followers","following_url":"https://api.github.com/users/ForTheReallys/following{/other_user}","gists_url":"https://api.github.com/users/ForTheReallys/gists{/gist_id}","starred_url":"https://api.github.com/users/ForTheReallys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ForTheReallys/subscriptions","organizations_url":"https://api.github.com/users/ForTheReallys/orgs","repos_url":"https://api.github.com/users/ForTheReallys/repos","events_url":"https://api.github.com/users/ForTheReallys/events{/privacy}","received_events_url":"https://api.github.com/users/ForTheReallys/received_events","type":"User","site_admin":false},"repo":{"id":152337840,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIzMzc4NDA=","name":"wlroots","full_name":"ForTheReallys/wlroots","private":false,"owner":{"login":"ForTheReallys","id":12522143,"node_id":"MDQ6VXNlcjEyNTIyMTQz","avatar_url":"https://avatars3.githubusercontent.com/u/12522143?v=4","gravatar_id":"","url":"https://api.github.com/users/ForTheReallys","html_url":"https://github.com/ForTheReallys","followers_url":"https://api.github.com/users/ForTheReallys/followers","following_url":"https://api.github.com/users/ForTheReallys/following{/other_user}","gists_url":"https://api.github.com/users/ForTheReallys/gists{/gist_id}","starred_url":"https://api.github.com/users/ForTheReallys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ForTheReallys/subscriptions","organizations_url":"https://api.github.com/users/ForTheReallys/orgs","repos_url":"https://api.github.com/users/ForTheReallys/repos","events_url":"https://api.github.com/users/ForTheReallys/events{/privacy}","received_events_url":"https://api.github.com/users/ForTheReallys/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ForTheReallys/wlroots","description":"A modular Wayland compositor library","fork":true,"url":"https://api.github.com/repos/ForTheReallys/wlroots","forks_url":"https://api.github.com/repos/ForTheReallys/wlroots/forks","keys_url":"https://api.github.com/repos/ForTheReallys/wlroots/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ForTheReallys/wlroots/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ForTheReallys/wlroots/teams","hooks_url":"https://api.github.com/repos/ForTheReallys/wlroots/hooks","issue_events_url":"https://api.github.com/repos/ForTheReallys/wlroots/issues/events{/number}","events_url":"https://api.github.com/repos/ForTheReallys/wlroots/events","assignees_url":"https://api.github.com/repos/ForTheReallys/wlroots/assignees{/user}","branches_url":"https://api.github.com/repos/ForTheReallys/wlroots/branches{/branch}","tags_url":"https://api.github.com/repos/ForTheReallys/wlroots/tags","blobs_url":"https://api.github.com/repos/ForTheReallys/wlroots/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ForTheReallys/wlroots/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ForTheReallys/wlroots/git/refs{/sha}","trees_url":"https://api.github.com/repos/ForTheReallys/wlroots/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ForTheReallys/wlroots/statuses/{sha}","languages_url":"https://api.github.com/repos/ForTheReallys/wlroots/languages","stargazers_url":"https://api.github.com/repos/ForTheReallys/wlroots/stargazers","contributors_url":"https://api.github.com/repos/ForTheReallys/wlroots/contributors","subscribers_url":"https://api.github.com/repos/ForTheReallys/wlroots/subscribers","subscription_url":"https://api.github.com/repos/ForTheReallys/wlroots/subscription","commits_url":"https://api.github.com/repos/ForTheReallys/wlroots/commits{/sha}","git_commits_url":"https://api.github.com/repos/ForTheReallys/wlroots/git/commits{/sha}","comments_url":"https://api.github.com/repos/ForTheReallys/wlroots/comments{/number}","issue_comment_url":"https://api.github.com/repos/ForTheReallys/wlroots/issues/comments{/number}","contents_url":"https://api.github.com/repos/ForTheReallys/wlroots/contents/{+path}","compare_url":"https://api.github.com/repos/ForTheReallys/wlroots/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ForTheReallys/wlroots/merges","archive_url":"https://api.github.com/repos/ForTheReallys/wlroots/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ForTheReallys/wlroots/downloads","issues_url":"https://api.github.com/repos/ForTheReallys/wlroots/issues{/number}","pulls_url":"https://api.github.com/repos/ForTheReallys/wlroots/pulls{/number}","milestones_url":"https://api.github.com/repos/ForTheReallys/wlroots/milestones{/number}","notifications_url":"https://api.github.com/repos/ForTheReallys/wlroots/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ForTheReallys/wlroots/labels{/name}","releases_url":"https://api.github.com/repos/ForTheReallys/wlroots/releases{/id}","deployments_url":"https://api.github.com/repos/ForTheReallys/wlroots/deployments","created_at":"2018-10-10T00:10:41Z","updated_at":"2018-10-10T00:10:44Z","pushed_at":"2018-12-21T18:22:23Z","git_url":"git://github.com/ForTheReallys/wlroots.git","ssh_url":"git@github.com:ForTheReallys/wlroots.git","clone_url":"https://github.com/ForTheReallys/wlroots.git","svn_url":"https://github.com/ForTheReallys/wlroots","homepage":"https://swaywm.org","size":5890,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"swaywm:master","ref":"master","sha":"82d36025e1b84a317b5e48d6f622eb9583ce6f2d","user":{"login":"swaywm","id":32400794,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyNDAwNzk0","avatar_url":"https://avatars1.githubusercontent.com/u/32400794?v=4","gravatar_id":"","url":"https://api.github.com/users/swaywm","html_url":"https://github.com/swaywm","followers_url":"https://api.github.com/users/swaywm/followers","following_url":"https://api.github.com/users/swaywm/following{/other_user}","gists_url":"https://api.github.com/users/swaywm/gists{/gist_id}","starred_url":"https://api.github.com/users/swaywm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swaywm/subscriptions","organizations_url":"https://api.github.com/users/swaywm/orgs","repos_url":"https://api.github.com/users/swaywm/repos","events_url":"https://api.github.com/users/swaywm/events{/privacy}","received_events_url":"https://api.github.com/users/swaywm/received_events","type":"Organization","site_admin":false},"repo":{"id":89377392,"node_id":"MDEwOlJlcG9zaXRvcnk4OTM3NzM5Mg==","name":"wlroots","full_name":"swaywm/wlroots","private":false,"owner":{"login":"swaywm","id":32400794,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyNDAwNzk0","avatar_url":"https://avatars1.githubusercontent.com/u/32400794?v=4","gravatar_id":"","url":"https://api.github.com/users/swaywm","html_url":"https://github.com/swaywm","followers_url":"https://api.github.com/users/swaywm/followers","following_url":"https://api.github.com/users/swaywm/following{/other_user}","gists_url":"https://api.github.com/users/swaywm/gists{/gist_id}","starred_url":"https://api.github.com/users/swaywm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swaywm/subscriptions","organizations_url":"https://api.github.com/users/swaywm/orgs","repos_url":"https://api.github.com/users/swaywm/repos","events_url":"https://api.github.com/users/swaywm/events{/privacy}","received_events_url":"https://api.github.com/users/swaywm/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/swaywm/wlroots","description":"A modular Wayland compositor library","fork":false,"url":"https://api.github.com/repos/swaywm/wlroots","forks_url":"https://api.github.com/repos/swaywm/wlroots/forks","keys_url":"https://api.github.com/repos/swaywm/wlroots/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swaywm/wlroots/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swaywm/wlroots/teams","hooks_url":"https://api.github.com/repos/swaywm/wlroots/hooks","issue_events_url":"https://api.github.com/repos/swaywm/wlroots/issues/events{/number}","events_url":"https://api.github.com/repos/swaywm/wlroots/events","assignees_url":"https://api.github.com/repos/swaywm/wlroots/assignees{/user}","branches_url":"https://api.github.com/repos/swaywm/wlroots/branches{/branch}","tags_url":"https://api.github.com/repos/swaywm/wlroots/tags","blobs_url":"https://api.github.com/repos/swaywm/wlroots/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swaywm/wlroots/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swaywm/wlroots/git/refs{/sha}","trees_url":"https://api.github.com/repos/swaywm/wlroots/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swaywm/wlroots/statuses/{sha}","languages_url":"https://api.github.com/repos/swaywm/wlroots/languages","stargazers_url":"https://api.github.com/repos/swaywm/wlroots/stargazers","contributors_url":"https://api.github.com/repos/swaywm/wlroots/contributors","subscribers_url":"https://api.github.com/repos/swaywm/wlroots/subscribers","subscription_url":"https://api.github.com/repos/swaywm/wlroots/subscription","commits_url":"https://api.github.com/repos/swaywm/wlroots/commits{/sha}","git_commits_url":"https://api.github.com/repos/swaywm/wlroots/git/commits{/sha}","comments_url":"https://api.github.com/repos/swaywm/wlroots/comments{/number}","issue_comment_url":"https://api.github.com/repos/swaywm/wlroots/issues/comments{/number}","contents_url":"https://api.github.com/repos/swaywm/wlroots/contents/{+path}","compare_url":"https://api.github.com/repos/swaywm/wlroots/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swaywm/wlroots/merges","archive_url":"https://api.github.com/repos/swaywm/wlroots/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swaywm/wlroots/downloads","issues_url":"https://api.github.com/repos/swaywm/wlroots/issues{/number}","pulls_url":"https://api.github.com/repos/swaywm/wlroots/pulls{/number}","milestones_url":"https://api.github.com/repos/swaywm/wlroots/milestones{/number}","notifications_url":"https://api.github.com/repos/swaywm/wlroots/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swaywm/wlroots/labels{/name}","releases_url":"https://api.github.com/repos/swaywm/wlroots/releases{/id}","deployments_url":"https://api.github.com/repos/swaywm/wlroots/deployments","created_at":"2017-04-25T15:33:43Z","updated_at":"2018-12-23T00:50:10Z","pushed_at":"2018-12-23T09:39:01Z","git_url":"git://github.com/swaywm/wlroots.git","ssh_url":"git@github.com:swaywm/wlroots.git","clone_url":"https://github.com/swaywm/wlroots.git","svn_url":"https://github.com/swaywm/wlroots","homepage":"https://swaywm.org","size":5888,"stargazers_count":649,"watchers_count":649,"language":"C","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":127,"mirror_url":null,"archived":false,"open_issues_count":168,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":127,"open_issues":168,"watchers":649,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/swaywm/wlroots/pulls/1432"},"html":{"href":"https://github.com/swaywm/wlroots/pull/1432"},"issue":{"href":"https://api.github.com/repos/swaywm/wlroots/issues/1432"},"comments":{"href":"https://api.github.com/repos/swaywm/wlroots/issues/1432/comments"},"review_comments":{"href":"https://api.github.com/repos/swaywm/wlroots/pulls/1432/comments"},"review_comment":{"href":"https://api.github.com/repos/swaywm/wlroots/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/swaywm/wlroots/pulls/1432/commits"},"statuses":{"href":"https://api.github.com/repos/swaywm/wlroots/statuses/5999d0322b63c4dd9f2cd902c2b798fc4df77116"}},"author_association":"NONE"}}
{"actor":{"display_login":"emersion"}}