2 * vim:ts=4:sw=4:expandtab
4 * i3 - an improved dynamic tiling window manager
5 * © 2009-2012 Michael Stapelberg and contributors (see also: LICENSE)
7 * xcb_compat.h: uses #define to create aliases for xcb functions which got
8 * renamed. Makes the code work with >= 0.3.8 xcb-util and
12 #ifndef I3_XCB_COMPAT_H
13 #define I3_XCB_COMPAT_H
15 #define xcb_icccm_get_wm_protocols_reply_t xcb_get_wm_protocols_reply_t
16 #define xcb_icccm_get_wm_protocols xcb_get_wm_protocols
17 #define xcb_icccm_get_wm_protocols_unchecked xcb_get_wm_protocols_unchecked
18 #define xcb_icccm_get_wm_protocols_reply xcb_get_wm_protocols_reply
19 #define xcb_icccm_get_wm_protocols_reply_wipe xcb_get_wm_protocols_reply_wipe
20 #define XCB_ICCCM_WM_STATE_NORMAL XCB_WM_STATE_NORMAL
21 #define XCB_ICCCM_WM_STATE_WITHDRAWN XCB_WM_STATE_WITHDRAWN
22 #define xcb_icccm_get_wm_size_hints_from_reply xcb_get_wm_size_hints_from_reply
23 #define xcb_icccm_get_wm_normal_hints_reply xcb_get_wm_normal_hints_reply
24 #define xcb_icccm_get_wm_normal_hints_unchecked xcb_get_wm_normal_hints_unchecked
25 #define XCB_ICCCM_SIZE_HINT_P_MIN_SIZE XCB_SIZE_HINT_P_MIN_SIZE
26 #define XCB_ICCCM_SIZE_HINT_P_RESIZE_INC XCB_SIZE_HINT_P_RESIZE_INC
27 #define XCB_ICCCM_SIZE_HINT_BASE_SIZE XCB_SIZE_HINT_BASE_SIZE
28 #define XCB_ICCCM_SIZE_HINT_P_ASPECT XCB_SIZE_HINT_P_ASPECT
29 #define xcb_icccm_wm_hints_t xcb_wm_hints_t
30 #define xcb_icccm_get_wm_hints xcb_get_wm_hints
31 #define xcb_icccm_get_wm_hints_from_reply xcb_get_wm_hints_from_reply
32 #define xcb_icccm_get_wm_hints_reply xcb_get_wm_hints_reply
33 #define xcb_icccm_get_wm_hints_unchecked xcb_get_wm_hints_unchecked
34 #define xcb_icccm_wm_hints_get_urgency xcb_wm_hints_get_urgency
35 #define xcb_icccm_get_wm_transient_for_from_reply xcb_get_wm_transient_for_from_reply
37 #define XCB_ATOM_CARDINAL CARDINAL
38 #define XCB_ATOM_WINDOW WINDOW
39 #define XCB_ATOM_WM_TRANSIENT_FOR WM_TRANSIENT_FOR
40 #define XCB_ATOM_WM_NAME WM_NAME
41 #define XCB_ATOM_WM_CLASS WM_CLASS
42 #define XCB_ATOM_WM_HINTS WM_HINTS
43 #define XCB_ATOM_ATOM ATOM
44 #define XCB_ATOM_WM_NORMAL_HINTS WM_NORMAL_HINTS
45 #define XCB_ATOM_STRING STRING