summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-01-30 20:12:43 -0800
committerKeith Packard <keithp@keithp.com>2009-01-30 20:12:43 -0800
commit70d641c6d170cda44856579dfdcb42d3bb1f8221 (patch)
treebdd7345f5f7d729ec8c47493f49b675c07ca527a
parentbf284b043d4c5688da2207647126b095f8c2b0cd (diff)
Send X_RRGetOutputPrimary when making an X_RRGetOutputPrimary request
Using X_RRGetOutputProperty does not yield success here. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/XrrOutput.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XrrOutput.c b/src/XrrOutput.c
index 0c39a31..18863bd 100644
--- a/src/XrrOutput.c
+++ b/src/XrrOutput.c
@@ -176,7 +176,7 @@ XRRGetOutputPrimary(Display *dpy, Window window)
LockDisplay(dpy);
GetReq (RRGetOutputPrimary, req);
req->reqType = info->codes->major_opcode;
- req->randrReqType = X_RRGetOutputProperty;
+ req->randrReqType = X_RRGetOutputPrimary;
req->window = window;
if (!_XReply (dpy, (xReply *) &rep, 0, xFalse))