{"action":"opened","issue":{"url":"https://api.github.com/repos/GChristensen/enso-portable/issues/15","repository_url":"https://api.github.com/repos/GChristensen/enso-portable","labels_url":"https://api.github.com/repos/GChristensen/enso-portable/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/GChristensen/enso-portable/issues/15/comments","events_url":"https://api.github.com/repos/GChristensen/enso-portable/issues/15/events","html_url":"https://github.com/GChristensen/enso-portable/issues/15","id":369704758,"node_id":"MDU6SXNzdWUzNjk3MDQ3NTg=","number":15,"title":"getDesktopOffset does not get window work area","user":{"login":"robertcollier4","id":3143983,"node_id":"MDQ6VXNlcjMxNDM5ODM=","avatar_url":"https://avatars1.githubusercontent.com/u/3143983?v=4","gravatar_id":"","url":"https://api.github.com/users/robertcollier4","html_url":"https://github.com/robertcollier4","followers_url":"https://api.github.com/users/robertcollier4/followers","following_url":"https://api.github.com/users/robertcollier4/following{/other_user}","gists_url":"https://api.github.com/users/robertcollier4/gists{/gist_id}","starred_url":"https://api.github.com/users/robertcollier4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertcollier4/subscriptions","organizations_url":"https://api.github.com/users/robertcollier4/orgs","repos_url":"https://api.github.com/users/robertcollier4/repos","events_url":"https://api.github.com/users/robertcollier4/events{/privacy}","received_events_url":"https://api.github.com/users/robertcollier4/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-12T20:47:26Z","updated_at":"2018-10-12T20:47:26Z","closed_at":null,"author_association":"NONE","body":"The following suggested change affects the following files\r\nhttps://github.com/GChristensen/enso-portable/blob/master/enso/enso/platform/win32/graphics/__init__.py#L49\r\nLine 49 should use SPI_GETWORKAREA as shown below.\r\nhttps://github.com/GChristensen/enso-portable/blob/d0eb024cb2448673f5aafc51fe64e5d2d944d61a/enso/enso/graphics/__init__.py#L9\r\nLines 9,10 should be removed after this change. Since SPI_GETWORKAREA returns pixels not points.\r\n\r\ngetDesktopOffset() is currently returned as (0,0) without checking windows for the work area. This is a problem for users that have their taskbar at the top of the screen.\r\nIt should be replaced with the following code snippet to allow the proper window work area to be reported.\r\n\r\n    from ctypes import windll\r\n    from ctypes import wintypes, byref\r\n    SPI_GETWORKAREA = 48\r\n    SystemParametersInfo = windll.user32.SystemParametersInfoA\r\n    rectWorkarea = wintypes.RECT()\r\n    SystemParametersInfo(SPI_GETWORKAREA, 0, byref(rectWorkarea), 0)\r\n    workareaLeft = rectWorkarea.left\r\n    workareaRight = rectWorkarea.right\r\n    workareaTop = rectWorkarea.top\r\n    workareaBottom = rectWorkarea.bottom"}}
{"actor":{"display_login":"robertcollier4"}}