{"action":"created","issue":{"url":"https://api.github.com/repos/vector-im/riot-web/issues/6783","repository_url":"https://api.github.com/repos/vector-im/riot-web","labels_url":"https://api.github.com/repos/vector-im/riot-web/issues/6783/labels{/name}","comments_url":"https://api.github.com/repos/vector-im/riot-web/issues/6783/comments","events_url":"https://api.github.com/repos/vector-im/riot-web/issues/6783/events","html_url":"https://github.com/vector-im/riot-web/issues/6783","id":325614209,"number":6783,"title":"[Desktop client] Can't bring back Riot window after monitor change","user":{"login":"adrian-007","id":3051374,"avatar_url":"https://avatars2.githubusercontent.com/u/3051374?v=4","gravatar_id":"","url":"https://api.github.com/users/adrian-007","html_url":"https://github.com/adrian-007","followers_url":"https://api.github.com/users/adrian-007/followers","following_url":"https://api.github.com/users/adrian-007/following{/other_user}","gists_url":"https://api.github.com/users/adrian-007/gists{/gist_id}","starred_url":"https://api.github.com/users/adrian-007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrian-007/subscriptions","organizations_url":"https://api.github.com/users/adrian-007/orgs","repos_url":"https://api.github.com/users/adrian-007/repos","events_url":"https://api.github.com/users/adrian-007/events{/privacy}","received_events_url":"https://api.github.com/users/adrian-007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-23T09:06:06Z","updated_at":"2018-05-23T19:49:17Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"<!-- Please report security issues by email to security@matrix.org -->\r\n\r\n<!-- This is a bug report template. By following the instructions below and\r\nfilling out the sections with your information, you will help the us to get all\r\nthe necessary data to fix your issue.\r\n\r\nYou can also preview your report before submitting it. You may remove sections\r\nthat aren't relevant to your particular case.\r\n\r\nText between <!-- and --​> marks will be invisible in the report.\r\n-->\r\n\r\n### Description\r\n\r\nDesktop client's window cannot be brought back to another screen if you disconnect display on which application was.\r\n\r\n### Steps to reproduce\r\n\r\n- Connect two monitors\r\n- Run Riot desktop client on one of them\r\n- Disconnect monitor on which Riot is running on\r\n- Use Win + arrow keys to move windows between monitors\r\n\r\nDescribe how what happens differs from what you expected.\r\n\r\nRiot's window should be movable with Win + arrows key combination or it should move itself to primary display once current one is gone.\r\n\r\nLog: not sent?    <!-- You can send us the app's logs via the 'Report bug'\r\nlink on the 'Settings' page. Very important for hard-to-reproduce bugs. Please\r\nfile a bug here too! -->\r\n\r\n<!-- Include screenshots if possible: you can drag and drop images below. -->\r\n\r\n### Version information\r\n\r\n<!-- IMPORTANT: please answer the following questions, to help us narrow down the problem -->\r\n\r\n- **Platform**: desktop\r\n\r\nFor the desktop app:\r\n\r\n- **OS**: Windows\r\n- **Version**: 0.15.3 <!-- check the user settings panel if unsure -->\r\n"},"comment":{"url":"https://api.github.com/repos/vector-im/riot-web/issues/comments/391474176","html_url":"https://github.com/vector-im/riot-web/issues/6783#issuecomment-391474176","issue_url":"https://api.github.com/repos/vector-im/riot-web/issues/6783","id":391474176,"user":{"login":"adrian-007","id":3051374,"avatar_url":"https://avatars2.githubusercontent.com/u/3051374?v=4","gravatar_id":"","url":"https://api.github.com/users/adrian-007","html_url":"https://github.com/adrian-007","followers_url":"https://api.github.com/users/adrian-007/followers","following_url":"https://api.github.com/users/adrian-007/following{/other_user}","gists_url":"https://api.github.com/users/adrian-007/gists{/gist_id}","starred_url":"https://api.github.com/users/adrian-007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrian-007/subscriptions","organizations_url":"https://api.github.com/users/adrian-007/orgs","repos_url":"https://api.github.com/users/adrian-007/repos","events_url":"https://api.github.com/users/adrian-007/events{/privacy}","received_events_url":"https://api.github.com/users/adrian-007/received_events","type":"User","site_admin":false},"created_at":"2018-05-23T19:49:17Z","updated_at":"2018-05-23T19:49:17Z","author_association":"CONTRIBUTOR","body":"As a C++ developer working on Windows, I woudn't call it a common problem. Host window (in this case Electron) doesn't listen to system events and doesn't handle being off-screen very well. I got only a handful of applications that doesn't know how to get back to working display, most native Windows apps react to Win + left / right arrow.\r\n\r\nSome time ago I've reported that Riot doesn't remember it's position on the screen between restarts and it was fixed by adding a setting that is saved every time Riot is closing with window last coordinates - and that's good. Bad thing is that Riot doesn't do sanity checks and even after restart it places itself outside of Virtual Desktop region, rendering it unable to get back to visible region (because it doesn't react to common tricks, like alt-tabbing, win+arrows, etc). I'll check provided tricks again tomorrow at work (at home I work on Fedora and I don't have multiple displays)."}}
{"actor":{"display_login":"adrian-007"}}