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
This commit is contained in:
Rasmus Porsager 2024-10-23 03:09:24 +02:00 committed by Kacper Michajłow
parent dec1b00a75
commit 3d443cb267
1 changed files with 2 additions and 2 deletions

View File

@ -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]; struct xrandr_display *d = &x11->displays[n];
if (d->rc.y0 < x11->displays[b[0]].rc.y0) if (d->rc.y0 < x11->displays[b[0]].rc.y0)
b[0] = n; 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; b[1] = n;
if (d->rc.x0 < x11->displays[b[2]].rc.x0) if (d->rc.x0 < x11->displays[b[2]].rc.x0)
b[2] = n; 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; b[3] = n;
} }
} }