diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-07-21 23:58:09 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-07-21 23:58:09 +0000 |
| commit | bcb14a3ce94ee4b4cba07de7a297470719390331 (patch) | |
| tree | 5a94dc70a96a1e513886554e993c3260a176b44c /src/BaseDisplay.hh | |
| parent | a0cf45a0ef5f7e2cbf0833f4d8655131912400cc (diff) | |
acquire and provide Xinerama information for the window manager. now we just gotta use it.
Diffstat (limited to 'src/BaseDisplay.hh')
| -rw-r--r-- | src/BaseDisplay.hh | 25 |
1 files changed, 25 insertions, 0 deletions
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; } |
