History

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

Rasmus Porsager committed 2 years ago

Commit 3d443cb1 parent dec1b001 file · +2 −2Browse files

Unified · Split

video/out/x11_common.c+2−2
@@ -599,11 +599,11 @@ static void vo_x11_get_bounding_monitors(struct vo_x11_state *x11, long b[4]) · 598 unmodified lines
599599 struct xrandr_display *d = &x11->displays[n];
600600 if (d->rc.y0 < x11->displays[b[0]].rc.y0)
601601 b[0] = n;
602− if (d->rc.y1 < x11->displays[b[1]].rc.y1)
602+ if (d->rc.y1 > x11->displays[b[1]].rc.y1)
603603 b[1] = n;
604604 if (d->rc.x0 < x11->displays[b[2]].rc.x0)
605605 b[2] = n;
606− if (d->rc.x1 < x11->displays[b[3]].rc.x1)
606+ if (d->rc.x1 > x11->displays[b[3]].rc.x1)
607607 b[3] = n;
608608 }
609609 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t