11 bool init_window_manager();
12 void destroy_window_manager();
16 std::list<Window*> windows;
18 std::list<Rect> dirty_rects;
22 int titlebar_thickness;
32 void create_frame(Window *win);
33 void destroy_frame(Window *win);
39 void invalidate_region(const Rect &rect);
40 void process_windows();
42 void add_window(Window *win);
43 void remove_window(Window *win);
45 void set_focused_window(Window *win);
46 const Window *get_focused_window() const;
47 Window *get_focused_window();
49 Window *get_window_at_pos(int pointer_x, int pointer_y);
50 Window *get_root_window() const;
52 void set_focused_frame_color(int r, int g, int b);
53 void get_focused_frame_color(int *r, int *g, int *b) const;
55 void set_unfocused_frame_color(int r, int g, int b);
56 void get_unfocused_frame_color(int *r, int *g, int *b) const;
58 Window *get_grab_window() const;
60 void grab_mouse(Window *win);
63 void raise_window(Window *win);
64 void sink_window(Window *win);
66 void maximize_window(Window *win);
67 void unmaximize_window(Window *win);
70 extern WindowManager *wm;