From 353e4efdefca0fe118f5717783bf7e1df3592620 Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Tue, 3 Dec 2019 21:48:06 +0800 Subject: osc: rework window control configuration to add auto mode To aid in discoverability, and to address the most common case directly, I'm adding an 'auto' mode for the window controls. In this case, we will show the controls if there is no window border and hide them if there are borders. This also respects the option being toggled at runtime. To ensure that it works in the wayland case, I've also made sure that the wayland code explicitly forces the option to false if decoration support is missing. Based on feedback, I've split the config in two, with one option for whether controls are active, and one for alignment. These are new enough that we can get away with ignoring compatibility. --- DOCS/man/osc.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'DOCS/man') diff --git a/DOCS/man/osc.rst b/DOCS/man/osc.rst index f9d3282098..b243acf749 100644 --- a/DOCS/man/osc.rst +++ b/DOCS/man/osc.rst @@ -344,7 +344,7 @@ Configurable Options fixed later. ``windowcontrols`` - Default: no (Do not show window controls) + Default: auto (Show window controls if there is no window border) Whether to show window management controls over the video, and if so, which side of the window to place them. This may be desirable when the @@ -356,6 +356,12 @@ Configurable Options and ``quit``. Not all platforms implement ``minimize`` and ``maximize``, but ``quit`` will always work. +``windowcontrols_alignment`` + Default: right + + If window controls are shown, indicates which side should they be aligned + to. + Supports ``left`` and ``right`` which will place the controls on those respective sides. -- cgit v1.2.3