X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FBaseDisplay.hh;h=e4ef238723642993bea9cb04bd0ecb3e62b89987;hb=bb9a37ec3d10d529f4043ba76e149f0bd510c111;hp=3ebe6e616a4b23c575d444e6b9420735155f115e;hpb=bd7f9481590d79ba81c03d3d22ba190826921194;p=chaz%2Fopenbox diff --git a/src/BaseDisplay.hh b/src/BaseDisplay.hh index 3ebe6e61..e4ef2387 100644 --- a/src/BaseDisplay.hh +++ b/src/BaseDisplay.hh @@ -50,6 +50,10 @@ private: unsigned int screen_number; std::string display_string; Rect rect; +#ifdef XINERAMA + RectList xinerama_areas; + bool xinerama_active; +#endif public: ScreenInfo(BaseDisplay *d, unsigned int num); @@ -66,6 +70,10 @@ public: inline unsigned int getHeight(void) const { return rect.height(); } inline const std::string& displayString(void) const { return display_string; } +#ifdef XINERAMA + inline const RectList &getXineramaAreas(void) const { return xinerama_areas; } + inline bool isXineramaActive(void) const { return xinerama_active; } +#endif }; @@ -77,6 +85,15 @@ private: }; BShape shape; +#ifdef XINERAMA + struct BXinerama { + bool extensions; + int event_basep, error_basep; + int major, minor; // version + }; + BXinerama xinerama; +#endif // XINERAMA + unsigned int MaskList[8]; size_t MaskListLength; @@ -114,6 +131,10 @@ public: inline bool hasShapeExtensions(void) const { return shape.extensions; } +#ifdef XINERAMA + inline bool hasXineramaExtensions(void) const + { return xinerama.extensions; } +#endif // XINERAMA inline bool doShutdown(void) const { return run_state == SHUTDOWN; } inline bool isStartup(void) const @@ -130,6 +151,10 @@ public: { return screenInfoList.size(); } inline int getShapeEventBase(void) const { return shape.event_basep; } +#ifdef XINERAMA + inline int getXineramaMajorVersion(void) const + { return xinerama.major; } +#endif // XINERAMA inline void shutdown(void) { run_state = SHUTDOWN; } inline void run(void) { run_state = RUNNING; }