summaryrefslogtreecommitdiffstats
path: root/player/lua
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2021-04-24 19:17:36 +0200
committerder richter <der.richter@gmx.de>2021-04-24 19:58:12 +0200
commitd3b7732aaa3c9c94bee94937c8bb69cddfc09a2d (patch)
tree5d8ce2894074cd0671aa010e67a3c9fe6d33e18d /player/lua
parent01482c63ca029ea902ae6be97ab78becfd50d25b (diff)
downloadmpv-d3b7732aaa3c9c94bee94937c8bb69cddfc09a2d.tar.bz2
mpv-d3b7732aaa3c9c94bee94937c8bb69cddfc09a2d.tar.xz
mac: fix window geometry calculation on secondary screens
this is a regression of af26402, where we changed the geometry calculation to use the visible frame and consider its origin. though the origin is not screen relative but relative to the main screen. the rest of the code expects a screen relative rectangle. because of that windows would be placed out of the screen bounds when not on the main screen. recalculate to origin to be screen relative and use those values for the rest of the calculations. to make the code a bit more comprehensible be a bit more explicit about what is done where with temporary variables and comments. also move the mp_rect calculation that moves the origin and flips the y position to a separate function, so we can reuse it later.
Diffstat (limited to 'player/lua')
0 files changed, 0 insertions, 0 deletions