X-Git-Url: https://eleni.mutantstargoat.com/git/?p=winnie;a=blobdiff_plain;f=src%2Fwm.h;h=15c197b85ee35a73b7e5377c7e787a59501754ce;hp=e3f404041da43c137535d1306c6e8b31f8627c1e;hb=a43297a61d69ca5fa5bb7ae8407757da978b4dd4;hpb=5449bf8fbca1d2cfbefa0386df7109afb2a5aa34 diff --git a/src/wm.h b/src/wm.h index e3f4040..15c197b 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,33 @@ class Window; class WindowManager { private: std::list windows; + std::list frames; + 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;