]> Dogcows Code - chaz/openbox/blobdiff - src/Util.hh
check to make sure the workspaces is > 0 not != 0
[chaz/openbox] / src / Util.hh
index d70eabc8e7807687116ef94f8055a63129092735..40a2254abc72177f929e64e224930b0d3684f970 100644 (file)
@@ -28,7 +28,7 @@
 #include <X11/Xutil.h>
 
 #include <string>
-#include <list>
+#include <vector>
 
 class Rect {
 public:
@@ -72,12 +72,14 @@ public:
   inline bool valid(void) const { return _x2 > _x1 && _y2 > _y1; }
 
   bool intersects(const Rect &a) const;
+  bool contains(int __x, int __y) const;
+  bool contains(const Rect &a) const;
 
 private:
   int _x1, _y1, _x2, _y2;
 };
 
-typedef std::list<Rect> RectList;
+typedef std::vector<Rect> RectList;
 
 struct Strut {
   unsigned int top, bottom, left, right;
This page took 0.023475 seconds and 4 git commands to generate.