From 3d443cb26758ecf513001e3065ea3587993cf229 Mon Sep 17 00:00:00 2001 From: Rasmus Porsager Date: Wed, 23 Oct 2024 03:09:24 +0200 Subject: [PATCH] x11: fix --fs-screen=all The logic for getting the display edges was wrong and always resulting in 0 0 0 0 instead of the full desktop. This also fixes #11716 --- video/out/x11_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video/out/x11_common.c b/video/out/x11_common.c index f6849ce531937..817a6ba3a9ffd 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -599,11 +599,11 @@ static void vo_x11_get_bounding_monitors(struct vo_x11_state *x11, long b[4]) struct xrandr_display *d = &x11->displays[n]; if (d->rc.y0 < x11->displays[b[0]].rc.y0) b[0] = n; - if (d->rc.y1 < x11->displays[b[1]].rc.y1) + if (d->rc.y1 > x11->displays[b[1]].rc.y1) b[1] = n; if (d->rc.x0 < x11->displays[b[2]].rc.x0) b[2] = n; - if (d->rc.x1 < x11->displays[b[3]].rc.x1) + if (d->rc.x1 > x11->displays[b[3]].rc.x1) b[3] = n; } }