*work in progress*
[winnie] / src / wm.h
diff --git a/src/wm.h b/src/wm.h
new file mode 100644 (file)
index 0000000..27ae316
--- /dev/null
+++ b/src/wm.h
@@ -0,0 +1,23 @@
+#ifndef WM_H_
+#define WM_H_
+
+#include <list>
+#include "geom.h"
+
+class Window;
+
+class WindowManager {
+private:
+       std::list<Window*> windows;
+       std::list<Rect> dirty_rects;
+
+public:
+       WindowManager();
+
+       void invalidate_region(const Rect &rect);
+       void process_windows();
+};
+
+extern WindowManager *wm;
+
+#endif // WM_H_