From 6fad0ba9f7399a9888b68adc77dd1028566c57a6 Mon Sep 17 00:00:00 2001 From: Milan Zamazal Date: Fri, 17 Jun 2022 19:30:38 +0200 Subject: [PATCH] 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. --- pw-ui.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pw-ui.el b/pw-ui.el index 4a2e160..6223897 100644 --- a/pw-ui.el +++ b/pw-ui.el @@ -60,8 +60,8 @@ The indicator is displayed only on graphical terminals." :group 'pipewire) (defcustom pipewire-osd-frame-parameters - `((left . (+ 50)) - (top . (- 50))) + `((left . 0.05) + (top . 0.95)) "Alist of frame parameters for the on screen display indicator." :type '(alist :key-type symbol :value-type sexp) :group 'pip-frame)