summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-12-16 01:55:30 -0800
committerKeith Packard <keithp@keithp.com>2014-12-16 17:54:23 -0800
commitd3435f6b2a3176b598d2f138f9cd4a6b08efc056 (patch)
treea6f96e74ca89a70e4dc0140c9cf933350716f536 /include
parent64e70b61f516291434b8137906f80faae20d489e (diff)
Add monitors, update to version 1.5HEADmaster
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'include')
-rw-r--r--include/X11/extensions/Xrandr.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/X11/extensions/Xrandr.h b/include/X11/extensions/Xrandr.h
index f394864..cfbc45d 100644
--- a/include/X11/extensions/Xrandr.h
+++ b/include/X11/extensions/Xrandr.h
@@ -552,6 +552,36 @@ XRRGetProviderProperty (Display *dpy, RRProvider provider,
unsigned long *nitems, unsigned long *bytes_after,
unsigned char **prop);
+
+typedef struct _XRRMonitorInfo {
+ Atom name;
+ Bool primary;
+ Bool automatic;
+ int noutput;
+ int x;
+ int y;
+ int width;
+ int height;
+ int mwidth;
+ int mheight;
+ RROutput *outputs;
+} XRRMonitorInfo;
+
+XRRMonitorInfo *
+XRRAllocateMonitor(Display *dpy, int noutput);
+
+XRRMonitorInfo *
+XRRGetMonitors(Display *dpy, Window window, int *nmonitors);
+
+void
+XRRSetMonitor(Display *dpy, Window window, XRRMonitorInfo *monitor);
+
+void
+XRRDeleteMonitor(Display *dpy, Window window, Atom name);
+
+void
+XRRFreeMonitors(XRRMonitorInfo *monitors);
+
_XFUNCPROTOEND
#endif /* _XRANDR_H_ */