X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Fwm.h;h=162121bb9f83e177ed95a0a1f4598b103da2ff40;hb=f634e2d68f3f5b4ba5645891b2c8110f48e80129;hp=e3f404041da43c137535d1306c6e8b31f8627c1e;hpb=5449bf8fbca1d2cfbefa0386df7109afb2a5aa34;p=winnie diff --git a/src/wm.h b/src/wm.h index e3f4040..162121b 100644 --- a/src/wm.h +++ b/src/wm.h @@ -2,6 +2,7 @@ #define WM_H_ #include + #include "geom.h" #include "pixmap.h" @@ -10,20 +11,32 @@ class Window; class WindowManager { private: std::list windows; + std::list dirty_rects; int bg_color[3]; + int frame_thickness; + int titlebar_thickness; + int frame_fcolor[3]; + int frame_ucolor[3]; + + Window *root_win; Window *focused_win; Pixmap mouse_cursor; + void create_frame(Window *win); + void destroy_frame(Window *win); + public: WindowManager(); + ~WindowManager(); void invalidate_region(const Rect &rect); void process_windows(); void add_window(Window *win); + void remove_window(Window *win); void set_focused_window(Window *win); const Window *get_focused_window() const;