]> git.lizzy.rs Git - bspwm.git/blob - window.h
Implement ICCCM's WM_TAKE_FOCUS behavior
[bspwm.git] / window.h
1 #ifndef _WINDOW_H
2 #define _WINDOW_H
3
4 #include <stdarg.h>
5 #include <xcb/xcb.h>
6 #include <xcb/xcb_icccm.h>
7 #include <xcb/xcb_event.h>
8 #include "types.h"
9
10 void center(xcb_rectangle_t, xcb_rectangle_t *);
11 bool contains(xcb_rectangle_t, xcb_rectangle_t);
12 bool might_cover(desktop_t *, node_t *);
13 bool is_inside(monitor_t *, xcb_point_t);
14 xcb_rectangle_t get_rectangle(client_t *);
15 void get_side_handle(client_t *, direction_t, xcb_point_t *);
16 monitor_t *monitor_from_point(xcb_point_t);
17 monitor_t *underlying_monitor(client_t *);
18 void manage_window(monitor_t *, desktop_t *, xcb_window_t);
19 void adopt_orphans(void);
20 void window_draw_border(node_t *, bool, bool);
21 uint32_t get_border_color(client_t *, bool, bool);
22 void update_floating_rectangle(client_t *);
23 void query_pointer(xcb_window_t *, xcb_point_t *);
24 void window_close(node_t *);
25 void window_kill(desktop_t *, node_t *);
26 void set_fullscreen(desktop_t *, node_t *, bool);
27 void set_floating(desktop_t *, node_t *, bool);
28 void set_locked(monitor_t *, desktop_t *, node_t *, bool);
29 void set_urgency(monitor_t *, desktop_t *, node_t *, bool);
30 void set_floating_atom(xcb_window_t, uint32_t);
31 void enable_floating_atom(xcb_window_t);
32 void disable_floating_atom(xcb_window_t);
33 void window_border_width(xcb_window_t, uint32_t);
34 void window_move(xcb_window_t, int16_t, int16_t);
35 void window_resize(xcb_window_t, uint16_t, uint16_t);
36 void window_move_resize(xcb_window_t, int16_t, int16_t, uint16_t, uint16_t);
37 void window_focus(xcb_window_t);
38 void window_raise(xcb_window_t);
39 void stack_tiled(desktop_t *);
40 void stack(desktop_t *, node_t *);
41 void window_lower(xcb_window_t);
42 void window_set_visibility(xcb_window_t, bool);
43 void window_hide(xcb_window_t);
44 void window_show(xcb_window_t);
45 void toggle_visibility(void);
46 void desktop_show(desktop_t *);
47 void desktop_hide(desktop_t *);
48 void enable_motion_recorder(void);
49 void disable_motion_recorder(void);
50 void update_motion_recorder(void);
51 void update_input_focus(void);
52 void set_input_focus(node_t *);
53 void clear_input_focus(void);
54 void center_pointer(monitor_t *);
55 void get_atom(char *, xcb_atom_t *);
56 void set_atom(xcb_window_t, xcb_atom_t, uint32_t);
57 bool has_proto(xcb_atom_t, xcb_icccm_get_wm_protocols_reply_t *);
58 void icccm_focus(xcb_window_t);
59
60 #endif