{"action":"created","issue":{"url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/3858","repository_url":"https://api.github.com/repos/qbittorrent/qBittorrent","labels_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/3858/labels{/name}","comments_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/3858/comments","events_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/3858/events","html_url":"https://github.com/qbittorrent/qBittorrent/pull/3858","id":108267467,"number":3858,"title":"Fix dialogs didn't position on the correct screen","user":{"login":"Chocobo1","id":9395168,"avatar_url":"https://avatars.githubusercontent.com/u/9395168?v=3","gravatar_id":"","url":"https://api.github.com/users/Chocobo1","html_url":"https://github.com/Chocobo1","followers_url":"https://api.github.com/users/Chocobo1/followers","following_url":"https://api.github.com/users/Chocobo1/following{/other_user}","gists_url":"https://api.github.com/users/Chocobo1/gists{/gist_id}","starred_url":"https://api.github.com/users/Chocobo1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chocobo1/subscriptions","organizations_url":"https://api.github.com/users/Chocobo1/orgs","repos_url":"https://api.github.com/users/Chocobo1/repos","events_url":"https://api.github.com/users/Chocobo1/events{/privacy}","received_events_url":"https://api.github.com/users/Chocobo1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":38,"created_at":"2015-09-25T05:41:06Z","updated_at":"2016-04-21T15:35:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/3858","html_url":"https://github.com/qbittorrent/qBittorrent/pull/3858","diff_url":"https://github.com/qbittorrent/qBittorrent/pull/3858.diff","patch_url":"https://github.com/qbittorrent/qBittorrent/pull/3858.patch"},"body":"See issue #3538.\r\n\r\nThis PR made child dialogs/windows pop up directly on top of it's parent.\r\n\r\nI removed `isVirtualDesktop()` check.\r\nIt's possible to have mouse cursor & qbt main window on different screens and (while qbt window have focus) use keyboard shortcuts to open a dialog, this way, `screenNumber(QCursor::pos())` would not get the correct screen number.\r\n\r\n-----\r\n~~# Don't merge yet.~~\r\nIt' ready now."},"comment":{"url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/comments/212976898","html_url":"https://github.com/qbittorrent/qBittorrent/pull/3858#issuecomment-212976898","issue_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/3858","id":212976898,"user":{"login":"Chocobo1","id":9395168,"avatar_url":"https://avatars.githubusercontent.com/u/9395168?v=3","gravatar_id":"","url":"https://api.github.com/users/Chocobo1","html_url":"https://github.com/Chocobo1","followers_url":"https://api.github.com/users/Chocobo1/followers","following_url":"https://api.github.com/users/Chocobo1/following{/other_user}","gists_url":"https://api.github.com/users/Chocobo1/gists{/gist_id}","starred_url":"https://api.github.com/users/Chocobo1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chocobo1/subscriptions","organizations_url":"https://api.github.com/users/Chocobo1/orgs","repos_url":"https://api.github.com/users/Chocobo1/repos","events_url":"https://api.github.com/users/Chocobo1/events{/privacy}","received_events_url":"https://api.github.com/users/Chocobo1/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T15:35:52Z","updated_at":"2016-04-21T15:35:52Z","body":">It's not working for me, always at right position:\r\n\r\nYour qbt is maximized? \r\nAnyway, it's not meant to place center on parent window. The exact position is decided by windows manager.\r\n\r\nQuote Qt doc: http://doc.qt.io/qt-5/qdialog.html#QDialog :\r\n>A dialog is always a top-level widget, but if it has a parent, its default location is centered on top of the parent. It will also share the parent's taskbar entry.\r\n\r\nmy screenshots:\r\n[on right](https://cloud.githubusercontent.com/assets/9395168/14714848/352f8634-0819-11e6-84dd-00b92ad1f867.png), [on left](https://cloud.githubusercontent.com/assets/9395168/14714833/2a6b0fca-0819-11e6-9f89-49ec058714e2.png)\r\n"}}