0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00
mpv/video/out/mac
der richter d3b7732aaa 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.
2021-04-24 19:58:12 +02:00
..
common.swift mac: fix window geometry calculation on secondary screens 2021-04-24 19:58:12 +02:00
gl_layer.swift
title_bar.swift mac: fix a window positioning bug when exiting fullscreen 2020-12-19 15:44:59 +01:00
view.swift
window.swift mac: fix traditional fullscreen on macOS 11 2021-02-27 13:12:46 +01:00