{"action":"created","issue":{"url":"https://api.github.com/repos/koekeishiya/kwm/issues/323","repository_url":"https://api.github.com/repos/koekeishiya/kwm","labels_url":"https://api.github.com/repos/koekeishiya/kwm/issues/323/labels{/name}","comments_url":"https://api.github.com/repos/koekeishiya/kwm/issues/323/comments","events_url":"https://api.github.com/repos/koekeishiya/kwm/issues/323/events","html_url":"https://github.com/koekeishiya/kwm/issues/323","id":149429109,"number":323,"title":"Better support for dual GPUs setups","user":{"login":"cHoco","id":85527,"avatar_url":"https://avatars.githubusercontent.com/u/85527?v=3","gravatar_id":"","url":"https://api.github.com/users/cHoco","html_url":"https://github.com/cHoco","followers_url":"https://api.github.com/users/cHoco/followers","following_url":"https://api.github.com/users/cHoco/following{/other_user}","gists_url":"https://api.github.com/users/cHoco/gists{/gist_id}","starred_url":"https://api.github.com/users/cHoco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cHoco/subscriptions","organizations_url":"https://api.github.com/users/cHoco/orgs","repos_url":"https://api.github.com/users/cHoco/repos","events_url":"https://api.github.com/users/cHoco/events{/privacy}","received_events_url":"https://api.github.com/users/cHoco/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/koekeishiya/kwm/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":28,"created_at":"2016-04-19T11:19:57Z","updated_at":"2016-04-21T16:43:32Z","closed_at":null,"body":"This has been bugging me **a lot** in the last couple of days. \r\nBasically on Macs with dual GPUs, one is the integrated graphic card in the cpu and the other is the dedicated discrete chip, when OS X automatically switches from one to the other, kwm notices it as new display being added (and the old display being deleted) recreating the window tree from scratch and thus losing the current windows arrangements :("},"comment":{"url":"https://api.github.com/repos/koekeishiya/kwm/issues/comments/213006481","html_url":"https://github.com/koekeishiya/kwm/issues/323#issuecomment-213006481","issue_url":"https://api.github.com/repos/koekeishiya/kwm/issues/323","id":213006481,"user":{"login":"chrishoage","id":1056886,"avatar_url":"https://avatars.githubusercontent.com/u/1056886?v=3","gravatar_id":"","url":"https://api.github.com/users/chrishoage","html_url":"https://github.com/chrishoage","followers_url":"https://api.github.com/users/chrishoage/followers","following_url":"https://api.github.com/users/chrishoage/following{/other_user}","gists_url":"https://api.github.com/users/chrishoage/gists{/gist_id}","starred_url":"https://api.github.com/users/chrishoage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrishoage/subscriptions","organizations_url":"https://api.github.com/users/chrishoage/orgs","repos_url":"https://api.github.com/users/chrishoage/repos","events_url":"https://api.github.com/users/chrishoage/events{/privacy}","received_events_url":"https://api.github.com/users/chrishoage/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T16:43:32Z","updated_at":"2016-04-21T16:43:32Z","body":"The first time I tried this it _appeared_ it worked perfectly, but I was not able to reproduce my success. \r\n\r\nhttps://gist.github.com/chrishoage/72a0ac049b5a26e58bc6c26bc606bc7d\r\n\r\nI have included logs. \r\n\r\nWhat happens is everything ends up on my laptop display in a broken (as in some windows are the incorrect size) BSP tree. \r\n\r\nI also got these logged to STD Error\r\n\r\n```\r\nApr 21 09:40:38  kwm[51765] <Error>: Set a breakpoint at CGSLogError to catch errors as they are logged.\r\nApr 21 09:40:38  kwm[51765] <Error>: CGSCopyDisplayUUID: Invalid display 0x1a4ca906\r\n```"}}