{"action":"opened","issue":{"url":"https://api.github.com/repos/koekeishiya/kwm/issues/45","labels_url":"https://api.github.com/repos/koekeishiya/kwm/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/koekeishiya/kwm/issues/45/comments","events_url":"https://api.github.com/repos/koekeishiya/kwm/issues/45/events","html_url":"https://github.com/koekeishiya/kwm/issues/45","id":125198840,"number":45,"title":"Focus previous window when closing","user":{"login":"oetting","id":572972,"avatar_url":"https://avatars.githubusercontent.com/u/572972?v=3","gravatar_id":"","url":"https://api.github.com/users/oetting","html_url":"https://github.com/oetting","followers_url":"https://api.github.com/users/oetting/followers","following_url":"https://api.github.com/users/oetting/following{/other_user}","gists_url":"https://api.github.com/users/oetting/gists{/gist_id}","starred_url":"https://api.github.com/users/oetting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oetting/subscriptions","organizations_url":"https://api.github.com/users/oetting/orgs","repos_url":"https://api.github.com/users/oetting/repos","events_url":"https://api.github.com/users/oetting/events{/privacy}","received_events_url":"https://api.github.com/users/oetting/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-06T15:31:24Z","updated_at":"2016-01-06T15:31:24Z","closed_at":null,"body":"When a window is closed the first window of the current space is focused (if focus follows mouse is disabled). As discussed earlier it would be nice if the previously focused window was selected instead. \r\n\r\nFor instance when composing an email in Mail.app and sending it, it can be annoying that focus is not returned to the main Mail.app window. \r\n\r\nWould it be possible to focus (in the kwm sense) the window that OS X focuses, at least if it is in the same space? \r\n\r\nAlternatively I guess it would require implementing a focus-history."}}