{"action":"opened","issue":{"url":"https://api.github.com/repos/electron/electron/issues/15851","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/15851/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/15851/comments","events_url":"https://api.github.com/repos/electron/electron/issues/15851/events","html_url":"https://github.com/electron/electron/issues/15851","id":384888794,"node_id":"MDU6SXNzdWUzODQ4ODg3OTQ=","number":15851,"title":"Window not positioned correctly when using setPosition() with two displays","user":{"login":"MathieuDebit","id":6206650,"node_id":"MDQ6VXNlcjYyMDY2NTA=","avatar_url":"https://avatars3.githubusercontent.com/u/6206650?v=4","gravatar_id":"","url":"https://api.github.com/users/MathieuDebit","html_url":"https://github.com/MathieuDebit","followers_url":"https://api.github.com/users/MathieuDebit/followers","following_url":"https://api.github.com/users/MathieuDebit/following{/other_user}","gists_url":"https://api.github.com/users/MathieuDebit/gists{/gist_id}","starred_url":"https://api.github.com/users/MathieuDebit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MathieuDebit/subscriptions","organizations_url":"https://api.github.com/users/MathieuDebit/orgs","repos_url":"https://api.github.com/users/MathieuDebit/repos","events_url":"https://api.github.com/users/MathieuDebit/events{/privacy}","received_events_url":"https://api.github.com/users/MathieuDebit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-27T16:49:01Z","updated_at":"2018-11-27T16:49:01Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"* Output of `node_modules/.bin/electron --version`: `v3.0.5`\r\n* Operating System (Platform and Version): Windows 10, Mac OSX Mojave\r\n* Output of `node_modules/.bin/electron --version` on last known working Electron version (if applicable):\r\n\r\n**Expected Behavior**\r\nWhen using `window.setPosition(0, 0)`, window should be positioned at `0, 0`.\r\n\r\n**Actual behavior**\r\nWindow is not always positioned correctly, depending on the current window position (if on other display, etc).\r\n\r\n**To Reproduce**\r\n```sh\r\n$ git clone https://github.com/MathieuDebit/electron-quick-start.git -b bug/window-set-position\r\n$ npm install\r\n$ npm start || electron .\r\n```\r\n\r\n- Move window to second screen\r\n- Click on `resetPosition` with position `0, 0`\r\n→ Depending on the second screen virtual position, the window is not correctly positioned.\r\n\r\n**Screenshots**\r\nIf applicable, add screenshots to help explain your problem.\r\n\r\n**Additional Information**\r\nMacOS seems to handle off-screen window differently so the bug is not always present (see https://github.com/mawie81/electron-window-state/issues/44#issuecomment-438381017).\r\n"}}
{"actor":{"display_login":"MathieuDebit"}}