summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Xrandr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Xrandr.c b/src/Xrandr.c
index 1cc8518..2776462 100644
--- a/src/Xrandr.c
+++ b/src/Xrandr.c
@@ -578,6 +578,7 @@ static XRRScreenConfiguration *_XRRGetScreenInfo (Display *dpy, Window window)
XRRScreenConfiguration *XRRGetScreenInfo (Display *dpy, Window window)
{
XRRScreenConfiguration *config;
+ XRRFindDisplay(dpy);
LockDisplay (dpy);
config = _XRRGetScreenInfo(dpy, window);
UnlockDisplay (dpy);