summaryrefslogtreecommitdiff
path: root/src/XrrProperty.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@neko.keithp.com>2006-11-30 21:56:59 -0800
committerKeith Packard <keithp@neko.keithp.com>2006-11-30 21:56:59 -0800
commit370fa28a6afd70ec91411edf1413c0e448ae45b6 (patch)
treea45560c98ad4bc79331ffbbc2321e9d1e62c9ced /src/XrrProperty.c
parent0dba1be7969aa56f934d93889cbd589b3dafd3d4 (diff)
Add initial implementation of crtc gamma and mode adding requests.randr-1.2
They build. More testing seems indicated.
Diffstat (limited to 'src/XrrProperty.c')
-rw-r--r--src/XrrProperty.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/XrrProperty.c b/src/XrrProperty.c
index 3b16491..5367e1e 100644
--- a/src/XrrProperty.c
+++ b/src/XrrProperty.c
@@ -58,9 +58,9 @@ XRRListOutputProperties (Display *dpy, RROutput output, int *nprop)
return NULL;
}
- if (rep.nProperties) {
- nbytes = rep.nProperties * sizeof (Atom);
- netbytes = rep.nProperties << 2;
+ if (rep.nAtoms) {
+ nbytes = rep.nAtoms * sizeof (Atom);
+ netbytes = rep.nAtoms << 2;
props = (Atom *) Xmalloc (nbytes);
if (props == NULL) {
@@ -74,7 +74,7 @@ XRRListOutputProperties (Display *dpy, RROutput output, int *nprop)
_XRead32 (dpy, props, nbytes);
}
- *nprop = rep.nProperties;
+ *nprop = rep.nAtoms;
UnlockDisplay (dpy);
SyncHandle ();
return props;
@@ -98,6 +98,7 @@ XRRQueryOutputProperty (Display *dpy, RROutput output, Atom property)
req->reqType = info->codes->major_opcode;
req->randrReqType = X_RRQueryOutputProperty;
req->output = output;
+ req->property = property;
if (!_XReply (dpy, (xReply *) &rep, 0, xFalse)) {
UnlockDisplay (dpy);