set teh xinerama stuff even when not compiled with the xinerama extension so code can use it always
This commit is contained in:
parent
3f80d431ad
commit
971e227b14
2 changed files with 6 additions and 6 deletions
|
@ -112,12 +112,16 @@ ScreenInfo::ScreenInfo(int num) {
|
||||||
|
|
||||||
// if we can't find any xinerama regions, then we act as if it is not
|
// if we can't find any xinerama regions, then we act as if it is not
|
||||||
// active, even though it said it was
|
// active, even though it said it was
|
||||||
_xinerama_active = True;
|
_xinerama_active = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
_xinerama_active = false;
|
||||||
#endif // XINERAMA
|
#endif // XINERAMA
|
||||||
|
if (!_xinerama_active)
|
||||||
|
_xinerama_areas.push_back(Rect(Point(0, 0), _size));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,10 +24,8 @@ private:
|
||||||
int _screen;
|
int _screen;
|
||||||
std::string _display_string;
|
std::string _display_string;
|
||||||
Size _size;
|
Size _size;
|
||||||
#ifdef XINERAMA
|
|
||||||
std::vector<Rect> _xinerama_areas;
|
std::vector<Rect> _xinerama_areas;
|
||||||
bool _xinerama_active;
|
bool _xinerama_active;
|
||||||
#endif
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ScreenInfo(int num);
|
ScreenInfo(int num);
|
||||||
|
@ -39,11 +37,9 @@ public:
|
||||||
inline int screen() const { return _screen; }
|
inline int screen() const { return _screen; }
|
||||||
inline const Size& size() const { return _size; }
|
inline const Size& size() const { return _size; }
|
||||||
inline const std::string& displayString() const { return _display_string; }
|
inline const std::string& displayString() const { return _display_string; }
|
||||||
#ifdef XINERAMA
|
|
||||||
inline const std::vector<Rect> &xineramaAreas() const
|
inline const std::vector<Rect> &xineramaAreas() const
|
||||||
{ return _xinerama_areas; }
|
{ return _xinerama_areas; }
|
||||||
inline bool isXineramaActive() const { return _xinerama_active; }
|
inline bool isXineramaActive() const { return _xinerama_active; }
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue