diff options
author | Akemi <der.richter@gmx.de> | 2017-02-23 20:01:27 +0100 |
---|---|---|
committer | Akemi <der.richter@gmx.de> | 2017-02-28 00:01:15 +0100 |
commit | 4fe199c6a06606b0191575b3a0127076135a952c (patch) | |
tree | eb4b2b74a4027cc1cbb76a86050b0321a72a0ca3 /video/decode/hw_dxva2.c | |
parent | 9d549e68377d3c2164aa7b1ec11d49fe2bdf7a0a (diff) | |
download | mpv-4fe199c6a06606b0191575b3a0127076135a952c.tar.bz2 mpv-4fe199c6a06606b0191575b3a0127076135a952c.tar.xz |
cocoa: improve calculation of new window position on a different screen
forcibly moving a window from one screen to another is supposed to put
it in a position that looks relative the same as on the old screen, as
in bottom, top, left and right margin look the same, without changing
the window size. in some situations the old code moved the window off
screen or on top of the menu bar so it ended up at a somewhat random
position. the new code fixes some edge cases but is probably not
completely correct since the priority is to make sure that the window
ends up on the right screen.
Diffstat (limited to 'video/decode/hw_dxva2.c')
0 files changed, 0 insertions, 0 deletions