summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-07-12 00:12:55 +0200
committerwm4 <wm4@nowhere>2020-07-12 00:12:55 +0200
commit4a93b046e954892edf3356bcd5745c612232fe15 (patch)
tree235153a1bf0393d7a576124994a7a48f71f00574 /DOCS
parent06033df715b433d41b1a0855cf7805ff8f66d664 (diff)
downloadmpv-4a93b046e954892edf3356bcd5745c612232fe15.tar.bz2
mpv-4a93b046e954892edf3356bcd5745c612232fe15.tar.xz
x11: add option to make window appear on a specific workspace
Mess this into the --geometry option, because I like to be irresponsible. I considered adding a separate option, but at least this allows me to defer the question how the hell this should work as property (geometry simply and inherently does not). Tested on IceWM only. Option equality test and string output not tested.
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/man/options.rst11
1 files changed, 7 insertions, 4 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index f554186f04..b85b67c991 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -2936,7 +2936,7 @@ Window
(X11 only)
Show the video window on all virtual desktops.
-``--geometry=<[W[xH]][+-x+-y]>``, ``--geometry=<x:y>``
+``--geometry=<[W[xH]][+-x+-y][/WS]>``, ``--geometry=<x:y>``
Adjust the initial window position or size. ``W`` and ``H`` set the window
size in pixels. ``x`` and ``y`` set the window position, measured in pixels
from the top-left corner of the screen to the top-left corner of the image
@@ -2945,7 +2945,9 @@ Window
Positions are specified similar to the standard X11 ``--geometry`` option
format, in which e.g. +10-50 means "place 10 pixels from the left border and
50 pixels from the lower border" and "--20+-10" means "place 20 pixels
- beyond the right and 10 pixels beyond the top border".
+ beyond the right and 10 pixels beyond the top border". A trailing ``/``
+ followed by an integer denotes on which workspace (virtual desktop) the
+ window should appear (X11 only).
If an external window is specified using the ``--wid`` option, this
option is ignored.
@@ -2982,9 +2984,10 @@ Window
Forces the window width and height to half the screen width and
height. Will show black borders to compensate for the video aspect
ratio (with most VOs and without ``--no-keepaspect``).
- ``50%+10+10``
+ ``50%+10+10/2``
Sets the window to half the screen widths, and positions it 10
- pixels below/left of the top left corner of the screen.
+ pixels below/left of the top left corner of the screen, on the
+ second workspace.
See also ``--autofit`` and ``--autofit-larger`` for fitting the window into
a given size without changing aspect ratio.