Use floating numbers for OSD frame position

If there are multiple monitors with different resolutions, integer
values may cause placing the OSD outside of the visible area.
Floating values are relative to the current monitor size and OSD
is always placed inside the visible area.
This commit is contained in:
Milan Zamazal 2022-06-17 19:30:38 +02:00
parent 2759cce8a6
commit 6fad0ba9f7

View File

@ -60,8 +60,8 @@ The indicator is displayed only on graphical terminals."
:group 'pipewire) :group 'pipewire)
(defcustom pipewire-osd-frame-parameters (defcustom pipewire-osd-frame-parameters
`((left . (+ 50)) `((left . 0.05)
(top . (- 50))) (top . 0.95))
"Alist of frame parameters for the on screen display indicator." "Alist of frame parameters for the on screen display indicator."
:type '(alist :key-type symbol :value-type sexp) :type '(alist :key-type symbol :value-type sexp)
:group 'pip-frame) :group 'pip-frame)