{"action":"created","issue":{"url":"https://api.github.com/repos/CdLbB/fb-rotate/issues/1","labels_url":"https://api.github.com/repos/CdLbB/fb-rotate/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/CdLbB/fb-rotate/issues/1/comments","events_url":"https://api.github.com/repos/CdLbB/fb-rotate/issues/1/events","html_url":"https://github.com/CdLbB/fb-rotate/pull/1","id":53347124,"number":1,"title":"problem with hanging on Yosemite","user":{"login":"mscuthbert","id":3521479,"avatar_url":"https://avatars.githubusercontent.com/u/3521479?v=3","gravatar_id":"","url":"https://api.github.com/users/mscuthbert","html_url":"https://github.com/mscuthbert","followers_url":"https://api.github.com/users/mscuthbert/followers","following_url":"https://api.github.com/users/mscuthbert/following{/other_user}","gists_url":"https://api.github.com/users/mscuthbert/gists{/gist_id}","starred_url":"https://api.github.com/users/mscuthbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mscuthbert/subscriptions","organizations_url":"https://api.github.com/users/mscuthbert/orgs","repos_url":"https://api.github.com/users/mscuthbert/repos","events_url":"https://api.github.com/users/mscuthbert/events{/privacy}","received_events_url":"https://api.github.com/users/mscuthbert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-04T20:17:39Z","updated_at":"2015-01-09T20:59:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CdLbB/fb-rotate/pulls/1","html_url":"https://github.com/CdLbB/fb-rotate/pull/1","diff_url":"https://github.com/CdLbB/fb-rotate/pull/1.diff","patch_url":"https://github.com/CdLbB/fb-rotate/pull/1.patch"},"body":"The conversion from opt to DisplayID was not doing an unsigned conversion which was an occasional problem.  The call to CGDisplayIOServicePort() does not seem to work in some cases if CGGetOnlineDisplayList() has never been called.  This fix seems to work well on Yosemite; though I need to confess that I'm a poor C programmer (great python, but not much for this code) so please check the code before merging.\r\n\r\nRemoved warnings relating to coercing CGDirectDisplayID to pointer (apparently, even though we know that it is, Apple doesn't think so).\r\n\r\nI should have a patch that does not call CGDisplayIOServicePort() in the future if desired."},"comment":{"url":"https://api.github.com/repos/CdLbB/fb-rotate/issues/comments/69398084","html_url":"https://github.com/CdLbB/fb-rotate/pull/1#issuecomment-69398084","issue_url":"https://api.github.com/repos/CdLbB/fb-rotate/issues/1","id":69398084,"user":{"login":"CdLbB","id":368346,"avatar_url":"https://avatars.githubusercontent.com/u/368346?v=3","gravatar_id":"","url":"https://api.github.com/users/CdLbB","html_url":"https://github.com/CdLbB","followers_url":"https://api.github.com/users/CdLbB/followers","following_url":"https://api.github.com/users/CdLbB/following{/other_user}","gists_url":"https://api.github.com/users/CdLbB/gists{/gist_id}","starred_url":"https://api.github.com/users/CdLbB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CdLbB/subscriptions","organizations_url":"https://api.github.com/users/CdLbB/orgs","repos_url":"https://api.github.com/users/CdLbB/repos","events_url":"https://api.github.com/users/CdLbB/events{/privacy}","received_events_url":"https://api.github.com/users/CdLbB/received_events","type":"User","site_admin":false},"created_at":"2015-01-09T20:59:59Z","updated_at":"2015-01-09T20:59:59Z","body":"I finally got a chance to go through all your proposed changes (Pull Requests #1,#2, #3), and they all make sense.\r\n\r\nI'm going to set up a couple multi-monitor arrangements this weekend and test everything. As I have mentioned I haven't played with fb-rotate (or C programming) for quite a while, so this should be a good exercise. If everything works -- I expect it will -- I'll merge everything. Then I'll update the ReadMe.\r\n\r\nAgain, thanks for all your efforts.\r\n--Eric "}}