summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-rr-private.h
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-12-01 22:07:25 -0300
committerPerberos <[email protected]>2011-12-01 22:07:25 -0300
commitd00aab12b6ace2c3dda3efbc2aaa2646d78a9099 (patch)
tree8b0ca776e9234f7eabf3446f12df9a81abd466d0 /libmate-desktop/mate-rr-private.h
downloadmate-desktop-d00aab12b6ace2c3dda3efbc2aaa2646d78a9099.tar.bz2
mate-desktop-d00aab12b6ace2c3dda3efbc2aaa2646d78a9099.tar.xz
moving from https://github.com/perberos/mate-desktop-environment
Diffstat (limited to 'libmate-desktop/mate-rr-private.h')
-rw-r--r--libmate-desktop/mate-rr-private.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/libmate-desktop/mate-rr-private.h b/libmate-desktop/mate-rr-private.h
new file mode 100644
index 0000000..a9cddd7
--- /dev/null
+++ b/libmate-desktop/mate-rr-private.h
@@ -0,0 +1,53 @@
+#ifndef MATE_RR_PRIVATE_H
+#define MATE_RR_PRIVATE_H
+
+#ifdef HAVE_RANDR
+#include <X11/extensions/Xrandr.h>
+#endif
+
+typedef struct ScreenInfo ScreenInfo;
+
+struct ScreenInfo
+{
+ int min_width;
+ int max_width;
+ int min_height;
+ int max_height;
+
+#ifdef HAVE_RANDR
+ XRRScreenResources *resources;
+#endif
+
+ MateRROutput ** outputs;
+ MateRRCrtc ** crtcs;
+ MateRRMode ** modes;
+
+ MateRRScreen * screen;
+
+ MateRRMode ** clone_modes;
+
+#ifdef HAVE_RANDR
+ RROutput primary;
+#endif
+};
+
+struct MateRRScreen
+{
+ GdkScreen * gdk_screen;
+ GdkWindow * gdk_root;
+ Display * xdisplay;
+ Screen * xscreen;
+ Window xroot;
+ ScreenInfo * info;
+
+ int randr_event_base;
+ int rr_major_version;
+ int rr_minor_version;
+
+ MateRRScreenChanged callback;
+ gpointer data;
+
+ Atom connector_type_atom;
+};
+
+#endif