diff --git a/video/out/x11_common.c b/video/out/x11_common.c index 4c7237dd82..5c53ed4c34 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -364,7 +364,7 @@ static void xrandr_read(struct vo_x11_state *x11) RRCrtcChangeNotifyMask | RROutputChangeNotifyMask); } - XRRScreenResources *r = XRRGetScreenResources(x11->display, x11->rootwin); + XRRScreenResources *r = XRRGetScreenResourcesCurrent(x11->display, x11->rootwin); if (!r) { MP_VERBOSE(x11, "Xrandr doesn't work.\n"); return;