summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/X11/extensions/Xrandr.h3
-rw-r--r--src/XrrOutput.c1
-rw-r--r--src/XrrScreen.c1
3 files changed, 2 insertions, 3 deletions
diff --git a/include/X11/extensions/Xrandr.h b/include/X11/extensions/Xrandr.h
index 827dcdc..418e97c 100644
--- a/include/X11/extensions/Xrandr.h
+++ b/include/X11/extensions/Xrandr.h
@@ -206,7 +206,6 @@ XRRSetScreenSize (Display *dpy, Window window,
int mmWidth, int mmHeight);
typedef unsigned long XRRModeFlags;
-typedef unsigned int XRRModeOrigin;
typedef unsigned int XRROutputOptions;
typedef struct _XRRModeInfo {
@@ -226,7 +225,6 @@ typedef struct _XRRModeInfo {
char *name;
unsigned int nameLength;
XRRModeFlags modeFlags;
- XRRModeOrigin origin;
} XRRModeInfo;
typedef struct _XRROutputConfig {
@@ -265,6 +263,7 @@ typedef struct _XRROutputInfo {
int nclone;
RROutput *clones;
int nmode;
+ int npreferred;
RRMode *modes;
} XRROutputInfo;
diff --git a/src/XrrOutput.c b/src/XrrOutput.c
index 872a83a..8ae3efa 100644
--- a/src/XrrOutput.c
+++ b/src/XrrOutput.c
@@ -97,6 +97,7 @@ XRRGetOutputInfo (Display *dpy, XRRScreenResources *resources, RROutput output)
xoi->ncrtc = rep.nCrtcs;
xoi->crtcs = (RRCrtc *) (xoi + 1);
xoi->nmode = rep.nModes;
+ xoi->npreferred = rep.nPreferred;
xoi->modes = (RRMode *) (xoi->crtcs + rep.nCrtcs);
xoi->nclone = rep.nClones;
xoi->clones = (RROutput *) (xoi->modes + rep.nModes);
diff --git a/src/XrrScreen.c b/src/XrrScreen.c
index 37e3aed..1b79c8f 100644
--- a/src/XrrScreen.c
+++ b/src/XrrScreen.c
@@ -162,7 +162,6 @@ XRRGetScreenResources (Display *dpy, Window window)
xrsr->modes[i].vTotal = modeInfo.vTotal;
xrsr->modes[i].nameLength = modeInfo.nameLength;
xrsr->modes[i].modeFlags = modeInfo.modeFlags;
- xrsr->modes[i].origin = modeInfo.origin;
}
/*