diff options
Diffstat (limited to 'src/XrrScreen.c')
-rw-r--r-- | src/XrrScreen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/XrrScreen.c b/src/XrrScreen.c index 1f7ffe6..3773c88 100644 --- a/src/XrrScreen.c +++ b/src/XrrScreen.c @@ -47,7 +47,6 @@ doGetScreenResources (Display *dpy, Window window, int poll) _XRRVersionState async_state; int nbytes, nbytesRead, rbytes; int i; - xRRQueryVersionReq *vreq; XRRScreenResources *xrsr; char *names; char *wire_names, *wire_name; @@ -61,6 +60,8 @@ doGetScreenResources (Display *dpy, Window window, int poll) if (xrri->major_version == -1) { + xRRQueryVersionReq *vreq; + /* hide a version query in the request */ GetReq (RRQueryVersion, vreq); vreq->reqType = info->codes->major_opcode; |