]> Dogcows Code - chaz/openbox/blobdiff - src/Util.cc
default all xinerama support options to off
[chaz/openbox] / src / Util.cc
index 514774239c1b4de4f1c03c329f75c7c72c73c0f4..d80834447971b425750bd5ee44dc04665eac95f1 100644 (file)
@@ -147,6 +147,12 @@ bool Rect::contains(int __x, int __y) const {
 }
 
 
+bool Rect::contains(const Rect& a) const {
+  return a._x1 >= _x1 && a._x2 <= _x2 &&
+         a._y1 >= _y1 && a._y2 <= _y2;
+}
+
+
 string expandTilde(const string& s) {
   if (s[0] != '~') return s;
 
This page took 0.021377 seconds and 4 git commands to generate.