From af264029483656e04458a678849165f0340433ab Mon Sep 17 00:00:00 2001 From: der richter Date: Sun, 13 Dec 2020 17:13:18 +0100 Subject: mac: use visible frame rectangle for window geometry calculation currently we use the whole screen rectangle to calculate the window geometry. this doesn't take the menu bar or the Dock into account. by default use the visible screen rectangle instead. this is also a change in behaviour, since the window can't be placed outside of this rectangle anymore. also add an option to change to the old behaviour, because it can still be useful in certain cases, like placing the window directly underneath the menu bar when used a desktop background. Fixes #8272 --- DOCS/man/options.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'DOCS/man/options.rst') diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index db3a8db500..c92353a2a6 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -5914,6 +5914,16 @@ The following video options are currently all specific to ``--vo=gpu`` and macOS only. +``--macos-geometry-calculation=`` + This changes the rectangle which is used to calculate the screen position + and size of the window (default: visible). ``visible`` takes the the menu + bar and Dock into account and the window is only positioned/sized within the + visible screen frame rectangle, ``whole`` takes the whole screen frame + rectangle and ignores the menu bar and Dock. Other previous restrictions + still apply, like the window can't be placed on top of the menu bar etc. + + macOS only. + ``--android-surface-size=`` Set dimensions of the rendering surface used by the Android gpu context. Needs to be set by the embedding application if the dimensions change during -- cgit v1.2.3