fixed grab win initialization
[winnie] / src / wm.h
index 406ef9d..6b9f13d 100644 (file)
--- a/src/wm.h
+++ b/src/wm.h
@@ -8,6 +8,9 @@
 
 class Window;
 
+bool init_window_manager();
+void destroy_window_manager(); 
+
 class WindowManager {
 private:
        std::list<Window*> windows;
@@ -44,11 +47,21 @@ public:
        Window *get_focused_window();
 
        Window *get_window_at_pos(int pointer_x, int pointer_y);
+       Window *get_root_window() const;
+
+       void set_focused_frame_color(int r, int g, int b);
+       void get_focused_frame_color(int *r, int *g, int *b) const;
+
+       void set_unfocused_frame_color(int r, int g, int b);
+       void get_unfocused_frame_color(int *r, int *g, int *b) const;
 
        Window *get_grab_window() const;
 
        void grab_mouse(Window *win);
        void release_mouse();
+
+       void raise_window(Window *win);
+       void sink_window(Window *win);
 };
 
 extern WindowManager *wm;