{"action":"created","issue":{"url":"https://api.github.com/repos/i3/i3/issues/2108","labels_url":"https://api.github.com/repos/i3/i3/issues/2108/labels{/name}","comments_url":"https://api.github.com/repos/i3/i3/issues/2108/comments","events_url":"https://api.github.com/repos/i3/i3/issues/2108/events","html_url":"https://github.com/i3/i3/pull/2108","id":121879218,"number":2108,"title":"Allow mouse bindings to run on the root window.","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-12T20:48:26Z","updated_at":"2015-12-15T18:14:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/i3/i3/pulls/2108","html_url":"https://github.com/i3/i3/pull/2108","diff_url":"https://github.com/i3/i3/pull/2108.diff","patch_url":"https://github.com/i3/i3/pull/2108.patch"},"body":"Previously, mouse bindings could only be run when a window was present,\r\nby using --whole-window. Such bindings would not work on empty\r\nworkspaces. However, this is a valid usecase for bindings like\r\n\r\n    bindsym $mod+button4 workspace prev\r\n    bindsym $mod+button5 workspace next\r\n\r\nHence, we need to grab the root window as well and run bindings on it.\r\n\r\nfixes #2097"},"comment":{"url":"https://api.github.com/repos/i3/i3/issues/comments/164845707","html_url":"https://github.com/i3/i3/pull/2108#issuecomment-164845707","issue_url":"https://api.github.com/repos/i3/i3/issues/2108","id":164845707,"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},"created_at":"2015-12-15T18:14:58Z","updated_at":"2015-12-15T18:14:58Z","body":"Side note: having tests for this would be cool. Given that we have https://github.com/i3/i3/blob/next/testcases/lib/i3test/XTEST.pm now, perhaps adding support for ButtonPress events is doable? What do you think, @Airblader, would that be interesting to you?"}}