{"action":"created","issue":{"url":"https://api.github.com/repos/i3/i3/issues/2337","repository_url":"https://api.github.com/repos/i3/i3","labels_url":"https://api.github.com/repos/i3/i3/issues/2337/labels{/name}","comments_url":"https://api.github.com/repos/i3/i3/issues/2337/comments","events_url":"https://api.github.com/repos/i3/i3/issues/2337/events","html_url":"https://github.com/i3/i3/pull/2337","id":152750825,"number":2337,"title":"Properly close disabled outputs restored during a restart.","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":"2016-05-03T11:18:55Z","updated_at":"2016-05-04T22:08:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/i3/i3/pulls/2337","html_url":"https://github.com/i3/i3/pull/2337","diff_url":"https://github.com/i3/i3/pull/2337.diff","patch_url":"https://github.com/i3/i3/pull/2337.patch"},"body":"If an output is disabled during a restart, for example because a binding\r\nsuch as\r\n\r\n    bindsym $mod+Shift+r exec \"xrandr --auto\", restart\r\n\r\nis used, it can happen that we first write the layout to disk and only\r\nthen receive the RandR change events. This leads to a situation where\r\nthe restored tree will contain these outputs, but the restarted i3\r\nprocess will not receive the RandR events, thus the internal output in i3\r\nis marked disabled.\r\n\r\nThis patch finds these cases after a restart and force-disables the\r\naffected outputs.\r\n\r\nfixes #2326"},"comment":{"url":"https://api.github.com/repos/i3/i3/issues/comments/217018622","html_url":"https://github.com/i3/i3/pull/2337#issuecomment-217018622","issue_url":"https://api.github.com/repos/i3/i3/issues/2337","id":217018622,"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},"created_at":"2016-05-04T22:08:09Z","updated_at":"2016-05-04T22:08:09Z","body":"Great, thanks!"}}