{"action":"closed","issue":{"url":"https://api.github.com/repos/stumpwm/stumpwm/issues/237","labels_url":"https://api.github.com/repos/stumpwm/stumpwm/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/stumpwm/stumpwm/issues/237/comments","events_url":"https://api.github.com/repos/stumpwm/stumpwm/issues/237/events","html_url":"https://github.com/stumpwm/stumpwm/issues/237","id":121362487,"number":237,"title":"Move windows when a monitor is unplugged","user":{"login":"ralt","id":1016379,"avatar_url":"https://avatars.githubusercontent.com/u/1016379?v=3","gravatar_id":"","url":"https://api.github.com/users/ralt","html_url":"https://github.com/ralt","followers_url":"https://api.github.com/users/ralt/followers","following_url":"https://api.github.com/users/ralt/following{/other_user}","gists_url":"https://api.github.com/users/ralt/gists{/gist_id}","starred_url":"https://api.github.com/users/ralt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralt/subscriptions","organizations_url":"https://api.github.com/users/ralt/orgs","repos_url":"https://api.github.com/users/ralt/repos","events_url":"https://api.github.com/users/ralt/events{/privacy}","received_events_url":"https://api.github.com/users/ralt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-12-09T23:08:37Z","updated_at":"2016-01-22T21:35:12Z","closed_at":"2016-01-22T21:35:12Z","body":"How to reproduce:\r\n\r\n- Plug in another monitor, configure it with xrandr, put some windows on it.\r\n- Unplug the monitor, disable it with xrandr, and your windows are lost with no way (that I've found) to restore them.\r\n\r\nSomehow, if stumpwm finds out that some windows are on a non-existent screen, it should move them to the next screen?\r\n\r\nI'm not sure of the technical feasibility there. Maybe managing the monitor layouts is necessary to do that. (I've started [something](https://github.com/ralt/remon/) to manage layouts with xrandr, maybe some code could be stolen.)"}}