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;
33 void create_frame(Window *win);
34 void destroy_frame(Window *win);
40 void invalidate_region(const Rect &rect);
41 void process_windows();
43 void add_window(Window *win);
44 void remove_window(Window *win);
46 void set_focused_window(Window *win);
47 const Window *get_focused_window() const;
48 Window *get_focused_window();
50 Window *get_window_at_pos(int pointer_x, int pointer_y);
51 Window *get_root_window() const;
53 void set_focused_frame_color(int r, int g, int b);
54 void get_focused_frame_color(int *r, int *g, int *b) const;
56 void set_unfocused_frame_color(int r, int g, int b);
57 void get_unfocused_frame_color(int *r, int *g, int *b) const;
59 void set_background(const Pixmap *pixmap);
60 const Pixmap *get_background() const;
62 Window *get_grab_window() const;
64 void grab_mouse(Window *win);
67 void raise_window(Window *win);
68 void sink_window(Window *win);
70 void maximize_window(Window *win);
71 void unmaximize_window(Window *win);
74 extern WindowManager *wm;