]> git.sur5r.net Git - i3/i3/blob - include/x.h
91af5014b6273fbd70328856fe9f9e871c5bcfa6
[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  * Re-initializes the associated X window state for this container. You have
17  * to call this when you assign a client to an empty container to ensure that
18  * its state gets updated correctly.
19  *
20  */
21 void x_reinit(Con *con);
22
23 /**
24  * Kills the window decoration associated with the given container.
25  *
26  */
27 void x_con_kill(Con *con);
28
29 /**
30  * Kills the given X11 window using WM_DELETE_WINDOW (if supported).
31  *
32  */
33 void x_window_kill(xcb_window_t window);
34
35 /**
36  * Draws the decoration of the given container onto its parent.
37  *
38  */
39 void x_draw_decoration(Con *con);
40
41 /**
42  * Pushes all changes (state of each node, see x_push_node() and the window
43  * stack) to X11.
44  *
45  */
46 void x_push_changes(Con *con);
47
48 /**
49  * Raises the specified container in the internal stack of X windows. The
50  * next call to x_push_changes() will make the change visible in X11.
51  *
52  */
53 void x_raise_con(Con *con);
54
55 #endif