diff options
Diffstat (limited to 'libmate-desktop/mate-rr-private.h')
-rw-r--r-- | libmate-desktop/mate-rr-private.h | 53 |
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 |