{"action":"created","issue":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/5257","repository_url":"https://api.github.com/repos/mpv-player/mpv","labels_url":"https://api.github.com/repos/mpv-player/mpv/issues/5257/labels{/name}","comments_url":"https://api.github.com/repos/mpv-player/mpv/issues/5257/comments","events_url":"https://api.github.com/repos/mpv-player/mpv/issues/5257/events","html_url":"https://github.com/mpv-player/mpv/pull/5257","id":283364766,"number":5257,"title":"w32_common: use the screen working area when resizing the window","user":{"login":"pavelxdd","id":7561226,"avatar_url":"https://avatars2.githubusercontent.com/u/7561226?v=4","gravatar_id":"","url":"https://api.github.com/users/pavelxdd","html_url":"https://github.com/pavelxdd","followers_url":"https://api.github.com/users/pavelxdd/followers","following_url":"https://api.github.com/users/pavelxdd/following{/other_user}","gists_url":"https://api.github.com/users/pavelxdd/gists{/gist_id}","starred_url":"https://api.github.com/users/pavelxdd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavelxdd/subscriptions","organizations_url":"https://api.github.com/users/pavelxdd/orgs","repos_url":"https://api.github.com/users/pavelxdd/repos","events_url":"https://api.github.com/users/pavelxdd/events{/privacy}","received_events_url":"https://api.github.com/users/pavelxdd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-12-19T20:48:42Z","updated_at":"2017-12-22T05:45:49Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/mpv-player/mpv/pulls/5257","html_url":"https://github.com/mpv-player/mpv/pull/5257","diff_url":"https://github.com/mpv-player/mpv/pull/5257.diff","patch_url":"https://github.com/mpv-player/mpv/pull/5257.patch"},"body":"This makes the default fit on screen, autofit and window-scale changing behavior to use the screen working area, instead of the whole screen area.\r\n\r\nAs a result mpv window doesn't cover the taskbar now when opening videos with size larger than the screen size.\r\n\r\nThe actual behavior now is the same as expected behavior for usecases 1-4 from #4363.\r\n\r\nAs for the usecase 5, I'm not sure how to implement it properly yet, so let's leave it for another PR.\r\n\r\nTested on two monitors with different set of options `--screen`, `--fs-screen`, `--autofit` and `--window-scale`.\r\n"},"comment":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/comments/353526918","html_url":"https://github.com/mpv-player/mpv/pull/5257#issuecomment-353526918","issue_url":"https://api.github.com/repos/mpv-player/mpv/issues/5257","id":353526918,"user":{"login":"pavelxdd","id":7561226,"avatar_url":"https://avatars2.githubusercontent.com/u/7561226?v=4","gravatar_id":"","url":"https://api.github.com/users/pavelxdd","html_url":"https://github.com/pavelxdd","followers_url":"https://api.github.com/users/pavelxdd/followers","following_url":"https://api.github.com/users/pavelxdd/following{/other_user}","gists_url":"https://api.github.com/users/pavelxdd/gists{/gist_id}","starred_url":"https://api.github.com/users/pavelxdd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavelxdd/subscriptions","organizations_url":"https://api.github.com/users/pavelxdd/orgs","repos_url":"https://api.github.com/users/pavelxdd/repos","events_url":"https://api.github.com/users/pavelxdd/events{/privacy}","received_events_url":"https://api.github.com/users/pavelxdd/received_events","type":"User","site_admin":false},"created_at":"2017-12-22T05:45:49Z","updated_at":"2017-12-22T05:45:49Z","author_association":"CONTRIBUTOR","body":"Removed the `screenrc` from `w32` struct, since this rect is only used when switching fullscreen.\r\nNow, the `get_screen_area` will return the current screen rect where the window is displayed on. When the window is not visible (hasn't been displayed yet, during initialization) this function will return the screen rect specified by `--screen` option."}}
{"actor":{"display_login":"pavelxdd"}}