Skip to content

Commit

Permalink
x11: fix --fs-screen=all
Browse files Browse the repository at this point in the history
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
  • Loading branch information
porsager authored and kasper93 committed Oct 23, 2024
1 parent dec1b00 commit 3d443cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions video/out/x11_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 3d443cb

Please sign in to comment.