]> git.sur5r.net Git - i3/i3/blob - include/x.h
43b0814b14d4e6384f4dccfbfad6133ecb8a33b4
[i3/i3] / include / x.h
1 /*
2  * vim:ts=4:sw=4:expandtab
3  */
4
5 #ifndef _X_H
6 #define _X_H
7
8 /**
9  * Initializes the X11 part for the given container. Called exactly once for
10  * every container from con_new().
11  *
12  */
13 void x_con_init(Con *con);
14
15 /**
16  * Moves a child window from Container src to Container dest.
17  *
18  */
19 void x_move_win(Con *src, Con *dest);
20
21 /**
22  * Reparents the child window of the given container (necessary for sticky
23  * containers). The reparenting happens in the next call of x_push_changes().
24  *
25  */
26 void x_reparent_child(Con *con, Con *old);
27
28 /**
29  * Re-initializes the associated X window state for this container. You have
30  * to call this when you assign a client to an empty container to ensure that
31  * its state gets updated correctly.
32  *
33  */
34 void x_reinit(Con *con);
35
36 /**
37  * Kills the window decoration associated with the given container.
38  *
39  */
40 void x_con_kill(Con *con);
41
42 /**
43  * Kills the given X11 window using WM_DELETE_WINDOW (if supported).
44  *
45  */
46 void x_window_kill(xcb_window_t window);
47
48 /**
49  * Draws the decoration of the given container onto its parent.
50  *
51  */
52 void x_draw_decoration(Con *con);
53
54 /**
55  * Pushes all changes (state of each node, see x_push_node() and the window
56  * stack) to X11.
57  *
58  */
59 void x_push_changes(Con *con);
60
61 /**
62  * Raises the specified container in the internal stack of X windows. The
63  * next call to x_push_changes() will make the change visible in X11.
64  *
65  */
66 void x_raise_con(Con *con);
67
68 /**
69  * Sets the WM_NAME property (so, no UTF8, but used only for debugging anyways)
70  * of the given name. Used for properly tagging the windows for easily spotting
71  * i3 windows in xwininfo -root -all.
72  *
73  */
74 void x_set_name(Con *con, const char *name);
75
76 #endif